Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
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!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Forms: Key Preview
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Forms: Key PreviewYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.?

[Reply][Quote]
john
Posts: 34
 
Re: Forms: Key PreviewYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/26/2024 7:47:01 AM