CodeItBetter Programming Another VB Programming Blog

How to Disable all Forms till the Form is closed

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
10
'Forms - How to Disable all Forms till the Form is closed

Option Explicit
 
'Add two forms to your project. Add a Command Button to Form1.
'When you load Form2, Form1 will not be able to get focus, until Form2 will be closed.

Private Sub Command1_Click()
    Form2.Show vbModal
End Sub
Filed under: Forms Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.