Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting focus not to the next object
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Setting focus not to the next object
Miscellaneous
Thread ID:
00147300
Message ID:
00147300
Views:
60
I need to set focus to several objects depending on the content of the current textbox if the TAB or ENTER key is pressed, so I'm using the MyForm.MyCurrentTextBox.KeyPress method to check if the nKeyCode is 13 or 9, if theis is true I set focus to the desired object with MyForm.MyDesiredObject.setfocus(), the problem is that the ENTER or TAB is kept in the buffer and is executed when MyDesiredObject already has the focus causing this object to loose the focus and the next object gets it.
Any tips to share?
Jorge Flores
From the Amigo Country
Next
Reply
Map
View

Click here to load this message in the networking platform