Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

textbox disabled and black text ??

Status
Not open for further replies.

bspaey

Programmer
Aug 20, 2001
2
BE
I want to create a textbox for viewing only

=> not accessing with keyboard or mouse
=> and so ... not changeable

Solutions I tried

* enable = false => don't like that text becomes gray
* locked = true => don't like that the user can access field

Thank you for your help !! Bart
 
why not just use a label and change it's backcolor property to white and give it a border. it will then look like a text box and the user can't alter info
 

If you really want to use a text box then use a frame control as it's container. Set the frames caption property to an empty string, the borderstyle to 0-None and the enabled property to false.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top