This works in the MouseUp for a numeric field:

this.SelStart = 0
this.SelLength = 100  && any value greater than the field width would work

Fred


On Fri, Jul 13, 2012 at 12:58 PM, Kent Belan <[email protected]> wrote:

> Happy Friday,
>
> I have a request from a user to make all numeric text boxes turn blue when
> the user clicks in the text box.
>
> The SelectOnEntry property is set to True and everything works fine if the
> user tabs into the numeric text box, but they sometimes use the mouse and
> click into the field, but the cursor stays where ever the user clicks.
>
> So if they click to the right of the decimal and start typing the amount,
> they only get decimals.
>
> Any way to make the text box simulate SelectOnEntry if the user clicks into
> the field with the mouse ?
>
> Thanks,
> Kent
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cajcbksoaomqm3ptuoqcc_rkejoxsquwy_c1otg3vybfedmh...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to