Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make txtBox not selectable
Message
From
12/11/2002 17:10:43
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00721854
Message ID:
00721866
Views:
17
1. You can set the enabled property to .f. and change the disabled forecolor and backcolor properties if you do not want it to appear disabled.
2. You can return .f. from the WHEN event and it won't allow the text box to ever get focus.

HTH


>Can someone tell me how to do this. I have a Textbox that does have a field ControlSource - but I want it to act just like a Label so that it can't be selected by the mouse. I do want the data from the field to appear on the form. I have set:
>
>BackStyle = 0 Transparent
>BorderStyle = 0 None
>TabStop = .F.
>Visible = .T.
>
>but if the user "mouses" around enough over that he can still select it.
>
>Anyone know how to make this field not selectable?
>
>Mel Cummings
Previous
Reply
Map
View

Click here to load this message in the networking platform