Answers for "run new form from one form another in c# windows application"

C#
1

how to travel from one form to another in C#

private void btnLogin_Click(object sender, EventArgs e)
{
     this.Close(); //Close Form1,the current open form.
 
     Form2 frm2 = new Form2();
 
     frm2.Show(); // Launch Form2,the new form.
}
Posted by: Guest on January-09-2021
0

Open another form with C# Winforms

Form myForm = new myForm();
myForm.Show();

//If you want to close the current form after the new one opens, then write in a new line, "this.Close();"
Posted by: Guest on August-22-2021

Code answers related to "run new form from one form another in c# windows application"

C# Answers by Framework

Browse Popular Code Answers by Language