Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form.KeyPress
Message
 
To
30/11/2007 11:53:07
General information
Forum:
ASP.NET
Category:
Forms
Title:
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01272436
Message ID:
01272444
Views:
16
I had not set KeyPreview to true, but I have now and it didn't change anything. It appears that if the control on the form does not handle keyboard events the keyboard events are not passed to the form.

>Have you set the form's KeyPreview property to True?
>
>>I can't figure this out. I have a form with a control that is docked to fill. The control does not support keypress (or any key input it seems). I want to capture when a key is pressed, but the form's KeyPressed event doesn't fire. I am sure there is an easy answer but I can't figure it out.
>>
>>Thanks,
>>Einar
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform