(IT is saying the Operator '=' is not defined for types
'System.Drawing.Color' and 'System.Drawing.Color'.
(btnface is a color)
If btnFace = Color.White OrElse btnFace = Color.Black Then
res = highlight
Else
res = Color.FromArgb(GetLightIndex(colorInfo1,
btnFace.R, highlight.R, window.R), GetLightIndex(colorInfo1, btnFace.G,
highlight.G, window.G), GetLightIndex(colorInfo1, btnFace.B,
highlight.B, window.B))
End If
It is saying the Public Event Changed(sender As Object, e As
System.EventArgs)' is an event, and cannot be called directly. Use a
'RaiseEvent' statement to raise an event.
Protected Overridable Sub OnChanged()
If Not (Changed) Is Nothing Then
RaiseEvent Changed(Me, EventArgs.Empty)
End If
End Sub 'OnChanged
Thank you for any help!!
|