[Solved] C# form press any key to continue [closed]


The action you are looking for is the form’s KeyPress event, So you can handle KeyPress of your start screen form

 //you need to register the event handle to your form first.. 
 //so the following line could be in your start screen form's constructor  
 this.KeyPress += new KeyPressEventHandler(Form1_KeyPress); 

 //then you can open your new form as you suggested 
 void Form1_KeyPress(object sender, KeyPressEventArgs e) 
 {
     Form2 f2 = new Form2();
     f2.Show();
     this.Hide();
 }

solved C# form press any key to continue [closed]