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
Dim frm as New Form2 frm.ShowDialog
Dim frm as New Form2 If frm.ShowDialog=DialogResult.OK ' Or any other result 'some thing here Else 'some other code End if
'Heading for the automatic overload' Marillion, Brave, The Great Escape, 1994 'How will WE stand the FIRE TOMORROW?' Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
Forum Rules