Solved

change disabled textbox's text color

Posted on 2004-09-02
5
504 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

786 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