Page 1 of 1
TIMER()
Posted: Sat Mar 12, 2005 7:04 am
by HaloKiller
does anyone no how to make Visual Studio .NET wait for, let's say, 10 seconds with the timer command?
Please help.
Posted: Sat Mar 12, 2005 7:34 am
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?
Posted: Sat Mar 12, 2005 7:42 am
by HaloKiller
i want it to resize an image after ten seconds
Posted: Sat Mar 12, 2005 7:59 am
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...
Posted: Sat Mar 12, 2005 9:10 am
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)
Posted: Sat Mar 12, 2005 1:13 pm
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
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.
Posted: Mon Mar 14, 2005 1:43 pm
by HaloKiller
thankyou