In VB.net ,How do open form2.vb from form1.vb in modal;)
Printable View
In VB.net ,How do open form2.vb from form1.vb in modal;)
VB Code:
Dim frm as New Form2 frm.ShowDialog
In case you want to do something based on the dialogresult of Form2 you can aslo try this:
VB Code:
Dim frm as New Form2 If frm.ShowDialog=DialogResult.OK ' Or any other result 'some thing here Else 'some other code End if