Different of vbmodal, vbmodeles and only form show on visual basic

sometimes we need to create new form without close another or a form cannot be touched before new form closed, follow steps :
1. create new project
2. create form1, command1, command2, command3 on the form, include the code :

Private Sub Command1_Click()
Form2.Show vbModeless, Me
End Sub

Private Sub Command2_Click()
Form2.Show vbModal, Me
End Sub

Private Sub Command3_Click()
Form2.Show
End Sub

3. create form2, and run your project, looks the different

good luck

just download the project : (use password : do-stupid-things.blogspot.com)
different of vbmodal, vbmodeles and only form show on visual basic

0 komentar:

Post a Comment

Search This Blog

Recent Post

Popular Posts