11/26/2024 7:26:01 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
|
|
|
|
Forms: Key Preview
Posted: 20 Oct 09 9:43 AM
|
Have a form. Clicked this property to true. Added three events keymouse down, up, press. Added a message box to each. So far so good.
click into an edit box, type something, msgbox tells me what key was pressed, YEA.
Is there any way to capture Alt-F4? Esc? Enter? Arrow keys, etc.?
|
|
|
|
Re: Forms: Key Preview
Posted: 20 Oct 09 11:07 AM
|
Take a look at the VB6 help for the KeyUp event on MSDN, I expect it is very similar...
Basically, the Shift parameter will hold if shift, ctrl, alt is being held, and Key will be the key code for the other key. "special" keys like you list are defined as constants in VB, so I guess you would need to define them yourself vbKeyEscape = 27 for example. |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|