Create a window that is locking all underlying windows?

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

How do I set so that a window (like a settings window) is locking all the
other stuff in the application and you need to close that befor eyou can use
the stuff behind?

regards/
Lars Netzel
 
Lars,

That's called a Modal window and can be created using the ShowDialog method.

dim myModal as New Form1
myModal.ShowDialog()
MsgBox("This line will execute only after myModal is closed")

-- Alex Papadimoulis
 
* "Lars Netzel said:
How do I set so that a window (like a settings window) is locking all the
other stuff in the application and you need to close that befor eyou can use
the stuff behind?

\\\
Dim f As New Form1()
f.ShowDialog()
f.Dispose()
///
 
Back
Top