Checking Button's ForeColor

  • Thread starter Thread starter Beebs
  • Start date Start date
B

Beebs

Since I can't do this:

If Me.btnNew.ForeColor = System.Drawing.Color.Blue Then
..
..
..

How can I check the color of a button's text in a conditional way, or
is there a viable workaround that will allow me to achieve what I'm
looking for?
 
Try this...

If System.Drawing.Color.op_Equality(Me.btnNew.ForeColor,
System.Drawing.Color.Blue) Then
...
End If
 
Back
Top