Display Only TextBox

Started by Marty Francom, June 16, 2005, 01:33:23 PM

Previous topic - Next topic

Marty Francom

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)

dacarle


Jean-Pierre LEROY

Hi Marty,

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

That's all.
Jean-Pierre.

Marty Francom

thanks,  Jean
  I thought there ought to be an easy way to do this. Just couldn't find where to make that setting change.