Results 1 to 5 of 5

Thread: Timer

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    How can i create and destroy a timer at run time, but also be able to set the interval of it ?

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    You can just use the Timer Control of VB.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    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

  4. #4
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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?

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width