Does any one know how to compare colors???
The following does NOT work.
If txtSerMgrTel.ForeColor = Color.Red Then
Converting them to int32
Dim currentcolor As Color = txtSerMgrTel.ForeColor
If currentcolor = Color.Red Then
Error is
Operator '=' is not defined for types 'System.Drawing.Color' and 'System.Drawing.Color'.
Any ideas?




Reply With Quote