Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter Key does not cause control to lose focus
Message
From
24/10/1998 21:22:02
 
 
To
24/10/1998 14:28:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00150185
Message ID:
00150245
Views:
16
>I've spent about 2 hours on this and I am my wits end.
>
>On one particular form, whenever I press enter to exit any textbox, focus remains on the current control and the cursor jumps back to the first character. I have to press Tab to move to another field, or if I fill in the field completely I move on to the next field, which is standard CONFIRM OFF behavior.
>
>I'm using VFP 6.0
>CONFIRM is OFF.
>The textbox (just for testing) is from the base TEXTBOX class, and does not have any of is properties overwritten except for controlsource, which I set to ThisForm.Comment just for testing.
>
>I have other forms built on a virtually identical framework that do not manifest this behavior.
>
>I did some research before I posted this, saw the informaion about Default=.T. in pushbuttons and thought I had found my solution, but even though I do have several pushbuttons on the form, none of them have Default=.T.
>
>Can anyone help me out?

This is proper Windows behavior..almost...you should have a command button with Default=.T. Under WIndows, Enter means "I'm done with this form...execute the default behavior".
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform