G
Guest
In C# I have a Windows Application and a Startup form created by
static void Main()
Application.Run(new Form1())
On Form1 I have a button which creates a new instance of a Form2 and Shows Form2. The same onclick event Hides Form1
On Form2 I have a Button, which when clicked, I want Form2 to Close and Form1 to Show again. But I cannot find a way to reference Form1 from Form2 in order to show it. Can anyone help please?
static void Main()
Application.Run(new Form1())
On Form1 I have a button which creates a new instance of a Form2 and Shows Form2. The same onclick event Hides Form1
On Form2 I have a Button, which when clicked, I want Form2 to Close and Form1 to Show again. But I cannot find a way to reference Form1 from Form2 in order to show it. Can anyone help please?