Hey again Stephen,
here's the example you asked for!
Regards,
Q
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
MyTextbox.BackColor = System.Drawing.Color.Green
MyTextbox.ForeColor = System.Drawing.Color.White
End Sub
"Stephen" <St******@xjohnstontrading.com> wrote in message
news:eq****************@TK2MSFTNGP09.phx.gbl...
excellent idea, i didnt think about that. i need to be able to change the
foreground to different colors depending on criteria in the app.... do u
have a example ?
again thanks
stephen
"Q" <Q@nomail.be> wrote in message
news:ew****************@tk2msftngp13.phx.gbl... Hey Stephen,
I had the same problem.
Since then, I use the ReadOnly-properth in stead of the Enabled.
If ReadOnly is set to true, the forecolor can be changed!
Maybe this helps you???
Regards,
Q
"Stephen" <St******@xjohnstontrading.com> wrote in message
news:e4****************@TK2MSFTNGP10.phx.gbl... greeting folks
I would like to change the foreground color for a disabled textbox
from the dimmed gray to something else that is easlier readable. I can change
the background using the following:
textbox1.BackColor = System.Drawing.SystemColors.Control.White
however i cant for the life of me figure out the foreground . any help
would be appreciated
steve