C# form press any key to continue -
i'm making application school , use function 'press key continue' on startup screen.
so when presses key opens te next form. can me this? in advance!
code far:
//some action// { form2 f2 = new form2(); f2.show(); this.hide(); }
the action looking form's keypress
event, can handle keypress
of start screen form
//you need register event handle form first.. //so following line in start screen form's constructor this.keypress += new keypresseventhandler(form1_keypress); //then can open new form suggested void form1_keypress(object sender, keypresseventargs e) { form2 f2 = new form2(); f2.show(); this.hide(); }
Comments
Post a Comment