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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top