Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Backspace = Tab????
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00517207
Message ID:
00517231
Views:
20
This message has been marked as the solution to the initial question of the thread.
>Hi Friends, it´s me again!!
>
>I have a problem: In my form, I have 4 TextBox controls. The problem is that If You use Backspace key, and contiune using even when you erase all data in the textbox, other TextBox has the focus. How can I avoid that behavior????
>
>Thanks in advance!!

You can put something like this in the KEYPRESS() method of your textbox class...
LPARAMETERS nKeyCode, nShiftAltCtrl

&& backspace or left arrow will not exit textbox
if (this.selStart = 0)
	if nKeyCode = 127 or nKeyCode = 19 or (nKeyCode = 52 and nShiftCtrl = 1)
		noDefault
	endif
endif
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform