Timer (VB)
-
- Posts: 861
- Joined: Fri Oct 07, 2005 10:52 pm
- Location: Shooting Nazis, Zombies, and anything inhuman
Timer (VB)
Is there a way to create a timer with VisualBasic? I've tried, and see no way so far
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
*COUGH*Dos Mes wrote:Is it really? Very weird! How'd you figure that out Pat?
I think he mentions it in the starter videos somewhere...
http://msdn.microsoft.com/vstudio/expre ... trolVB.wvx
There you go
...left for good
- LuxuriousMeat
- Posts: 824
- Joined: Thu Nov 03, 2005 6:43 pm
- Location: zzzzzzzzzzzzzzzz
- Contact:
Re: Timer (VB)
One month bump.. Oh well, I might as well somehow help for anyone else that will ever need the same thing...
C# example:
Sorry, but I don't do VB, and you should be able to make some changes or just use this as an example in your app.
System.Timers.Timer classDominatr wrote:Is there a way to create a timer with VisualBasic? I've tried, and see no way so far
C# example:
Code: Select all
class Program {
static void Main(string[] args) {
System.Timers.Timer tmr = new System.Timers.Timer();
tmr.Interval = 1000;
tmr.Elapsed += new System.Timers.ElapsedEventHandler(tmr_Elapsed);
}
static void tmr_Elapsed(object sender, System.Timers.ElapsedEventArgs e) {
//do something
}
}