Actually what I want to know also is, Why does the ForeColor not change the
color of the text in TextBox whereas a same named property does it in rich
textbox ?
Actually what I want to know also is, Why does the ForeColor not change
the color of the text in TextBox whereas a same named property does it in
rich textbox ?
Damn me!!
Did not realise that. You are right to some extent. The textbox was
read-only but not disabled (ReadOnly = TRUE, Enabled = TRUE). Now that I
have disabled it but its not read-only then it is showing different color. I
also need to change the BackColor property to control rather than window
(which was default) to get the greyed out look.
Playing with those properties for a few minutes, I have now realised that
you were absolutely right. If I do not have it enabled, I cannot change the
text color at run time but during design time, if I change the ForeColor, it
does change the text color.
Anyways, It has solved my problem now.
Thanks again for your help,
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.