How can i create and destroy a timer at run time, but also be able to set the interval of it ?
Printable View
How can i create and destroy a timer at run time, but also be able to set the interval of it ?
You can just use the Timer Control of VB.
What i want to achieve is to create a form at run time, for MDI usage (which i can do), but when each form is created at runtime i want to create a new timer control on the main form and to destroy the timer when the form is unloaded
why don't you put the timer on the child Form and have it call a public function on the main form when its timer interval is fired?
I've figured it out, how on an MDI form do i test to see if there is an open document, and if there isnt make it do something.