How to set EditBox as readonly and steel have a white backgroud ?
-
While I disagree with your UI decision (it definitely goes against what users are accustomed to), you can do this by handling the OnCtlColor message. There's a few threads here about how to do that. Just search on that function name and you should find what you need. Cheers, Tom Archer Author, Inside C# A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
-
I believe the reference you will find helpful is by Chris Losinger, Colorizing Edit Control at CodeProject.com This may or may not be exactly the one, but I have a ZIP that I downloaded named "ColorEdit_ColorStatic". It tells how to change colors of foreground text and background for both edit controls and static controls (e.g. labels.) Good luck. These helped me bring my dialogs to life! Johnny