Link to home
Start Free TrialLog in
Avatar of Cyber_Cus2
Cyber_Cus2

asked on

change disabled textbox's text color

How to change the text color of disabled textbox?
ASKER CERTIFIED SOLUTION
Avatar of JR2003
JR2003

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Alternatively you can set the Locked property to true and leave Enabled as true
Avatar of RonaldBiemans
RonaldBiemans

You can you, just have to do it in code

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

this works


Oeps, text color, didn't see that.
Avatar of Cyber_Cus2

ASKER

ok thanks for your answer