Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting a timer on another form?

Status
Not open for further replies.

WilliamUT

IS-IT--Management
Oct 8, 2002
182
0
0
US
I have a MDI form with a timer on it and a status bar. The timer runs every second to check the status of the connection to a database. The problem is I need to start the timer on the child form which is used to login to the database. I dont want to start the timer until the user has logged in sucsessfully. Anyways it's not like it used to be (i know this is because of oop) in vb6 where you could just type frmMDI.timer1.enabled = true. How can I start this timer from the child form?

I have tried Imports roosspacename.frmMDI and turning the timer to public but still cannot see it. Any help would be appreciated im stumped and need to get over this hurdle!

Thanks
 
Try this code in the child form:

Dim frm As frmMDI
frm = Me.mdiParent
frm.Timer1.Enabled = True

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top