Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I have an application for Pocket PC that allows user input through the hardware keys. My form has a single control on it, which in turn has several controls on. As far as I can work out pressing the hardware keys always triggers the KeyEvents of the main form, not the child (at least it has in all my tests). In order to keep my application segmented I want the control to handle these events. The way I'm doing it currently is to add a public method to the control which accepts the KeyEventArgs as a paramter and then just call this method from the forms KeyEvent (one method for each keyevent I wish to use i.e KeyDown, KeyPress etc etc). Is this the best way forward or am I missing a more OOP method.
Anybody looking for a graduate programmer (Midlands, England)?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...