TIMER()

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
HaloKiller





Posts: 59
Joined: Sat Jul 03, 2004 2:35 am
Location: Hmmmmmm... That's a toughie... What is "AT MY COMPUTER"?
Contact:

TIMER()

Post by HaloKiller »

does anyone no how to make Visual Studio .NET wait for, let's say, 10 seconds with the timer command?
Please help.
[CL]9mm-Man




Wordewatician 500

Posts: 773
Joined: Tue May 04, 2004 7:14 am
Location: Uranus

Post by [CL]9mm-Man »

What do you actually want to do? I can help you..Say you want it to wait 10 secs till some thing loads?
Your image cannot exceed 400x200 or 50kb
HaloKiller





Posts: 59
Joined: Sat Jul 03, 2004 2:35 am
Location: Hmmmmmm... That's a toughie... What is "AT MY COMPUTER"?
Contact:

Post by HaloKiller »

i want it to resize an image after ten seconds
[CL]9mm-Man




Wordewatician 500

Posts: 773
Joined: Tue May 04, 2004 7:14 am
Location: Uranus

Post by [CL]9mm-Man »

Okay, so make a timer and have the interval at 1...Then make the code for the timer...

Code: Select all

Image.Show (blah blah what sizes you want)
t= t +1
If t =11 Then
Timer1.Enabled = False

Then make it so when you click on the picture, you put...

Code: Select all

Timer1_Timer.Enabled = True
t = 0
Your image cannot exceed 400x200 or 50kb
HaloKiller





Posts: 59
Joined: Sat Jul 03, 2004 2:35 am
Location: Hmmmmmm... That's a toughie... What is "AT MY COMPUTER"?
Contact:

Post by HaloKiller »

I couldnt get it to work... if you dont mind a full tut on it... that would help.
Im not saying you have to or anything...
Also, is this code for Visual Basic 8?(Visual Studio .NET)
Thebirthdayhat





Posts: 94
Joined: Mon Nov 15, 2004 7:01 pm
Location: over there

Post by Thebirthdayhat »

i dont program in .net but i here its similar to vb6 and vb5. tryu this
1. make a timer and in the properties thingy change the interval to
100000 or 10000. one of them i 4get how much a millisecond is.
2. if u want it so when u click a button the timer starts then u shoulld set the enabled property to false and in the button u want to trigger the timers code type in

Code: Select all

timer1.enabled = True
assuming the timers name is timer1.
3. if u want it to happen right after the program starts then just set enabled property of the timer to True.
4. in the timers code just put watever u want to happen in and it will happen 10 seconds after the timer starts.
Signature exceeded 3 lines of text.
HaloKiller





Posts: 59
Joined: Sat Jul 03, 2004 2:35 am
Location: Hmmmmmm... That's a toughie... What is "AT MY COMPUTER"?
Contact:

Post by HaloKiller »

thankyou
Post Reply