Solved

how to set fore color of a text in a disabled textbox

Posted on 2004-10-15
5
950 Views
Last Modified: 2008-01-09
how to set fore color of a text in a disabled textbox
0
Comment
Question by:meenasree
5 Comments
 
LVL 7

Accepted Solution

by:
God_Ares earned 20 total points
ID: 12316714
you don't,.. if you want this you have to create your own textboxclass and inherit from textbox. override the paint,.. and when the control is disabled then you need to do some aditional drawing.

succes

regards

Floris Briolas
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12317684
0
 
LVL 10

Expert Comment

by:smegghead
ID: 12318618
You could just set it to 'readonly', and change the foreground/background colours..
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question