rfazendeiro Posted October 26, 2005 Posted October 26, 2005 hi to all, I'm makin an application that when the user presses the F3 key a form will popup. I have a main form that is a Mdi_parent but when i key press it does nothing...dont understand why. Here is the code i have [csharp] private void fmrMain_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.F3) { fmrPopUP pop = new fmrPopUP (); pop .MdiParent = this.MdiParent; pop .Show(); } } [/csharp] any ideias? Quote
Leaders snarfblam Posted October 26, 2005 Leaders Posted October 26, 2005 Is the main form's KeyPreview property set to true? Quote [sIGPIC]e[/sIGPIC]
rfazendeiro Posted October 27, 2005 Author Posted October 27, 2005 ok...that was the problem...did not know i had to set it to true. Thx Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.