PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marty Francom on June 16, 2005, 01:33:23 PM

Title: Display Only TextBox
Post by: Marty Francom on June 16, 2005, 01:33:23 PM
Is it possible to make a TextBox  display only?  I want to display some data in a TextBox but I don't want the user to be able to edit that data. (this data is programmically generated)
Title: Display Only TextBox
Post by: dacarle on June 16, 2005, 01:42:00 PM
try a label
Title: Display Only TextBox
Post by: Jean-Pierre LEROY on June 16, 2005, 02:27:45 PM
Hi Marty,

In the Properties of the TextBox -> WindowsStyles -> Style, you just have to check "ES_READONLY".

That's all.
Jean-Pierre.
Title: Display Only TextBox
Post by: Marty Francom on June 17, 2005, 05:32:31 PM
thanks,  Jean
  I thought there ought to be an easy way to do this. Just couldn't find where to make that setting change.