Solved

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

Posted on 2004-10-15
5
946 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
COnsume rest client 6 36
Connecting database in Xamarin? 6 52
Where can I ask about my ASP.NET MVC project? 6 21
Code works but it's slow 24 42
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now