prevent multiple forms from opening.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steve1rm
    New Member
    • Sep 2006
    • 12

    prevent multiple forms from opening.

    Hello,

    I have a menu that a user can click and open a window. However, if the user was to click this form many time, it will continue to open up more windows. I want to prevent this from happening. If the user clicks open, it should just open the window once, if the window is already open, then it should get focus for that window.
    Visual basic 2005 .Net

    I hope you understand, this is my code so far.

    Code:
    Dim rep10 As New NewCalls
    rep10.MdiParent = Me
    rep10.Show()
    Thanks in advance,

    steve
Working...