[C#] Question about Enableding a textbox

A

augustesen

Hi

I have a textBox on my form that I dont want the user to enter text
into or give focus to by clicking on it. Therefore I have used the
textBox1.Enabled = false property.

Unfortunatly this also makes the textbox gray and the text inside the
textbox slightly darker gray, making it very hard to read.

Is there a way to get the blocking of the Enabled = false property,
while still making the text in the textbox easy to see and read?

Regards
Søren Augustesen
 
H

Hank

Yes. This has been covered many times on this newsgroup. I find that if I do
a search of the archives (google groups), most of the time I find my answer
and I don't need to post and sit waiting for a reply. Do a search on:
textbox read only


Hi

I have a textBox on my form that I dont want the user to enter text
into or give focus to by clicking on it. Therefore I have used the
textBox1.Enabled = false property.

Unfortunatly this also makes the textbox gray and the text inside the
textbox slightly darker gray, making it very hard to read.

Is there a way to get the blocking of the Enabled = false property,
while still making the text in the textbox easy to see and read?

Regards
Søren Augustesen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top