?
Solved

change disabled textbox's text color

Posted on 2004-09-02
5
Medium Priority
?
509 Views
Last Modified: 2013-12-25
How to change the text color of disabled textbox?
0
Comment
Question by:Cyber_Cus2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 18

Accepted Solution

by:
JR2003 earned 150 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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 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…
Suggested Courses

777 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