Hi
I have a user that is visually impaired and who cannot read textboxes
content when they are disabled.
I have tried to inherits from the Textbox and overwrite the Paint method but
I have not been able to get a a perfect textbox.
SO what I need is a textbox on which I have the control of the BackColor and
the ForeColor when Disabled.
Any solutions ?
We can change the BackColor without a problem like this:
Private Sub TextBox3_EnabledChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox3.EnabledChanged
If TextBox3.Enabled Then
TextBox3.BackColor = Color.White
TextBox3.ForeColor = Color.Red
Else
TextBox3.BackColor = Color.AliceBlue
TextBox3.ForeColor = Color.Red
End If
End Sub
But the ForeColor is not set to Red when the Control is disabled. It stays
grayish. That is exactly what I want to fix!
I have found http://www.syncfusion.com/FAQ/Window...94c.aspx#q866q
but was not able to get it working properly.
--
TIA
Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
(http://aspnet2.com/mvp.ashx?EricMoreau)
Conseiller Principal / Senior Consultant
Concept S2i inc. (www.s2i.com)