M
MadCrazyNewbie
Hey Group,
Im using the following code in a ToolBar button to load up a form in my main
MDI container:
Case e.Button Is Me.tbbPasswordLists
Dim LoadPasswordLists As New frmMainMenuPasswords()
LoadPasswordLists.MdiParent = Me 'the MainForm
LoadPasswordLists.WindowState = FormWindowState.Maximized
LoadPasswordLists.Show()
Only problem is that if a user clicks on the toolbar button over and over
again it justs keeps opening the child form over and over again.
How would i get it to check to see if the form was already open, if it was
bring it to the front, if it isn`t open, load it?
Many Thanks
MCN
Im using the following code in a ToolBar button to load up a form in my main
MDI container:
Case e.Button Is Me.tbbPasswordLists
Dim LoadPasswordLists As New frmMainMenuPasswords()
LoadPasswordLists.MdiParent = Me 'the MainForm
LoadPasswordLists.WindowState = FormWindowState.Maximized
LoadPasswordLists.Show()
Only problem is that if a user clicks on the toolbar button over and over
again it justs keeps opening the child form over and over again.
How would i get it to check to see if the form was already open, if it was
bring it to the front, if it isn`t open, load it?
Many Thanks
MCN