• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 511
  • Last Modified:

change disabled textbox's text color

How to change the text color of disabled textbox?
0
Cyber_Cus2
Asked:
Cyber_Cus2
1 Solution
 
JR2003Commented:
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
 
GrahamSkanCommented:
Alternatively you can set the Locked property to true and leave Enabled as true
0
 
RonaldBiemansCommented:
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
 
RonaldBiemansCommented:
Oeps, text color, didn't see that.
0
 
Cyber_Cus2Author Commented:
ok thanks for your answer
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now