Jump to content
  • Advertisement
Sign in to follow this  
GeekPlusPlus

WinForms Keypress absence solution (C#)? *Solved*

This topic is 4882 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I'm rendering a Direct3D window on a panel control in C# on my main form. The only other control is a drop down list. I want to be able to handle keypress events to change what is rendered by DirectX, but a Panel control doesn't have Keypress events. I thought that the main form would handle the key press events because the panel couldn't, but it's clearly not. Does anyone have a solution for this problem? I'd render the DX result onto the form itself except that the main form can't take focus from the drop down menu, and so I still am not able to handle keypress events on the actual DX window. Thanks - GeekPlusPlus [Edited by - GeekPlusPlus on June 3, 2005 3:15:55 PM]

Share this post


Link to post
Share on other sites
Advertisement
It's hard to say without seeing the form code.
If you are overriding the on keypress event, make sure you are passing anything you don't handle yourself to the base class.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!