Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent form keypress from ocurring on one control
Message
 
 
To
26/07/2004 15:13:51
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00928031
Message ID:
00928036
Views:
25
This message has been marked as the solution to the initial question of the thread.
>I have a grid on a formclass and some other shapes and controls. The form initiates an action everytime the user presses a key based on the form's keypress event. I have a separate textbox I want to add to the form class though and it is the only control on the form that when the user enters a value, I do not want the form keypress to occur. Is there anyway to prevent the form's keypress event from ocurring on one control of the form only?
>

Hi Tracy,

A couple of ideas:
- Set forms KeyPreview = .F. in textbox GotFocus and back in LostFocus
- In forms KeyPress check active control and do nothing if it's this particular textbox
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform