Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox help
Message
From
04/06/1998 09:14:53
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00104650
Message ID:
00104687
Views:
19
>I have a textbox with a field from a table as the control source. I
>want the user to be able to click on the box and the backcolor
>change. No problem...I have it all set up...the only thing is that
>I do not want the user to be able to change the contents of the
>field...I want it to be read only...if I set the control to read
>only, then it will not take the backcolor command....if I take it off
>then everything works fine except the user can change the contents.
>Any suggestions?
>
>Tom
>
>
>Frustration is when you are programming and you don't know what you
>are doing...but hey, it's fun learning.

If you put NODEFAULT in Textbox.KeyPress event you effectively block any keystrokes user can type, so you probably will like to allow Enter and Tab and NODEFAULT all other keys.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform