Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default button behavior
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00618828
Message ID:
00618984
Views:
10
>Larry:
>
>Having a CASE statement that does nothing was the first thing I tried. The problem is that what happens when you hit {ENTER} is that even tho nothing fires, the button gains focus automatically even tho it is invisible and the cursor "disappears" as far as the user knows. What I need is for NOTHING to happen on Tab 1 when I hit the {ENTER} key.
>

Richard,
You could use the SetFocus method to set the focus elsewhere or you could add the following to the GotFocus of the button:
if THISFORM.Pageframe1.ActivePage = 1 then
	nodefault
endif
This will prevent the button from receiving focus and the Click will not fire.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform