How to show a form as modal

blumonde

Well-known member
Joined
Jul 26, 2005
Messages
68
Programming Experience
Beginner
Hi expert people,

I have 2 separate forms. Form1 and Form2. How do I bring up form2 as modal from within my form1 ? I tried to replicate the example in MSDN library by using the "Showdialog" method but I couldn't get it to work.

Please help.

blumonde
 
Last edited:
kulrom said:
It should be quite easy even for a newbie :D JK :)

VB.NET:
Dim nForm as Form
nForm = Form2
nForm.ShowDialog()

just add this code to the form1 (button or something)


Cheers ;)


Thank you kulrom :)

MSDN just sucks. Not even an example about it.

blumonde
 
Back
Top