petevick
Posts: 3386
Score: 0
Joined: 4/26/2002
From: Bolton - UK
Status: offline
|
Sorry - don't see your problem. Start a new project, and then add a new form - that should give you form1 and form2 On form1 put a button with a caption of 'Show', on form2 put a button with a caption of 'Close' Code behind the button on form1 is Dim frm1 as new form1
frm1.showdialog()
frm1.dispose Code behind button on form2 me.close When you run the project, and click on the button, form2 should show. When you click on 'close' on form 2, you should see form1.
_____________________________
Pete Vickers - Microsoft MVP - Device Application Development www.gui-innovations.com Please do not email me with questions. Posting your questions in the forums will get a quicker response - Thanks.
|