Hello,
I have a problem which I have now been working on for the past day and a half, I have googled and seen previous posts (
http://p2p.wrox.com/topic.asp?TOPIC_ID=28394), and yet I am still having trouble getting my head around it.
The problem is that on a click of a button I would like to OPEN a form called FORM2 and close a form called FORM1. I apologise if this post is trivial, its just that I've only recently started programming in
VB.NET, and I would be greatful if anyone could shed some light or help me resolve my problem. Below is the code for opening FORM2 I will attempt to write the code for closing FORM1.
Code:
private Form2 as ReturnObject
Sub Button1_Click(sender As Object, e As EventArgs)
Public Shadows Function ShowDialog() as ReturnObject
MyBase.showDialog
return Form2
End FUnction
End Sub