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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Box no Editing 1

Status
Not open for further replies.
Aug 1, 2003
39
US
Have a text box which is auto populated at runtime with information.
Would like it so that no one can place a cursor inside the text box and change the information. Viewable but not editable. What ways in properties or code can this be done.

Thanks

[smile]
 
Either set ReadOnly to True or Enabled to False, or both. See what works for you.
 
you can also place a RETURN .F. statement in the when event of the textbox
 
It should be ReadOnly. The color selected will give a visual clue to the user that it can't be edited.

Disabled implies that it can be enabled

RETURN .F. in the When will not give the clue...only frustrate the user because visually, the text can be edited.

Craig Berntson
MCSD, Visual FoxPro MVP, Author, CrysDev: A Developer's Guide to Integrating Crystal Reports"
 
Sounds like what you want is a label rather than textbox? Or does the label not have the look you want? I know labels are real plain.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top