namespace backButtonTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public static PrevPg() { Form1 cwForm1 = new Form1(); Form2 cwForm2 = new Form2(); Form3 cwForm3 = new Form3(); Form1 cwFrom1 = new Form1(); //this.Hide(); cwForm1.Show(); } private void button3_Click(object sender, EventArgs e) { if (cwForm1 == null) { } } } }
static Stack<Form>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)