Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check for a Right Click in the Valid Event
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00137764
Message ID:
00137784
Views:
23
>I have a textbox with code in the RightClick and the Valid Events. The user can right click on the field to display a form with a list box of valid selections. The user can also key directly to the text box and the valid event will compare againt the same list. This is very similar to the fuctionality of a combo box, but the user did not want a cobo box for this field.
>
>Anyway, if an incorrect value is entered, an error message is displayed by the valid when you attempt to leave the field. If I try to right click to select a correct entry, the valid event fires first, then displays my right click form, then returns to the original form leaving the right click form burried underneath.
>
>In the valid event, can I check to see if the user right clicked? That way I could suppress the error message since they are attempting to fix it, not just leave the field.

Matthew probably in the RightClick event for the textbox you can set some custom form property to .t., and then check it in your Valid.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform