Hi,

How do I prevent the cursor from leaving the textbox if you press backspace
when the cursor is at the start of the textbox. I thought there was a
command for doing this, but I can't find it.

Thanks

Re: How to prevent leaving textbox by Dan

Dan
Mon Oct 10 16:17:20 CDT 2005

RETURN 0 from the Valid() if Lastkey()=127.

Dan

tristan wrote:
> Hi,
>
> How do I prevent the cursor from leaving the textbox if you press
> backspace when the cursor is at the start of the textbox. I thought
> there was a command for doing this, but I can't find it.
>
> Thanks



Re: How to prevent leaving textbox by Gene

Gene
Mon Oct 10 17:02:45 CDT 2005

[reordered to chronological]

On Mon, 10 Oct 2005 14:17:20 -0700, "Dan Freeman" <spam@microsoft.com>
wrote:

>tristan wrote:

>> How do I prevent the cursor from leaving the textbox if you press
>> backspace when the cursor is at the start of the textbox. I thought
>> there was a command for doing this, but I can't find it.

>RETURN 0 from the Valid() if Lastkey()=127.

Won't that cause trouble if the operator tries to backspace out
then immediately uses the mouse to exit?

Sincerely,

Gene Wirchenko