Solved

change disabled textbox's text color

Posted on 2004-09-02
5
501 Views
Last Modified: 2013-12-25
How to change the text color of disabled textbox?
0
Comment
Question by:Cyber_Cus2
5 Comments
 
LVL 18

Accepted Solution

by:
JR2003 earned 50 total points
ID: 11962652
You can't.
The way to do this is to put the textbox in a container control like a frame and then disable the container.
see:
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/VB_Controls/Q_21087585.html
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 11962692
Alternatively you can set the Locked property to true and leave Enabled as true
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 11964042
You can you, just have to do it in code

Private Sub Command1_Click()
Text1.Enabled = False
Text1.BackColor = vbRed
End Sub

this works


0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 11964080
Oeps, text color, didn't see that.
0
 

Author Comment

by:Cyber_Cus2
ID: 11964423
ok thanks for your answer
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

746 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

13 Experts available now in Live!

Get 1:1 Help Now