>>>That´s exactly what I was looking for!!!!
>>>
>>>Thanks Steve!
>>PMFJI,
>>Your question and Steve's answer just improved my base textbox class -- my thanks!
>>One thing I did differently and thought I'd pass along is...
>>I check for SelStart = 0
and SelLength = 0 That way if the user highlights text and wants to delete it using the backspace, they still can.
>>Just my 2 cents...
>
>Bill,
>
>Thanks for throwing that in there...
It just so happens that a client called recently to complain about that 'feature' when they held the backspace key down too long. I hadn't had time to figure out how to stop it. You did! Thanks.
Bill Armbrecht
VFP MCP