I am trying to determine the backcolor of a textbox and have an event happen. I've been using:

"If txtbox.backcolor = System.Drawing.Color.Red Then

End if"

But this dont work. Can somone help me?


Sorry about that. I found the solution on the web. Thanks anyway!

U can paste ur solution so that it would be helpful for someone else who need the same....