Be aware that there is a bug in the implementation of the Color.Equals
function that I reported to LadyBug:
http://lab.msdn.microsoft.com/Produc...0-f642a2f97b04
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
"Ken Tucker [MVP]" <vb***@bellsouth.net> escribió en el mensaje
news:ua**************@TK2MSFTNGP10.phx.gbl...
Hi,
Try something like this.
If Me.BackColor.Equals(System.Drawing.SystemColors.Co ntrol) Then
Me.BackColor = Color.Tomato
End If
Ken