Trying to get a grasp on skinning. Works fine with strict off how ever i do understand the implicit conversion but can't for the life of me solve it.
Error 1 Overload resolution failed because no accessible '-' can be called with these arguments:
'Public Shared Operator -(pt As System.Drawing.Point, sz As System.Drawing.Size) As System.Drawing.Point': Option Strict On disallows implicit conversions from 'System.Drawing.Point' to 'System.Drawing.Size'
vb Code:
Private mPoint As New Point(0, 0) Private mHeight As Integer = 50 Protected Overrides Sub OnMouseMove(ByVal e As MouseEventArgs) MyBase.OnMouseMove(e) Parent.Location = mPosition - mPoint End Sub
Error 1 Overload resolution failed because no accessible '-' can be called with these arguments:
'Public Shared Operator -(pt As System.Drawing.Point, sz As System.Drawing.Size) As System.Drawing.Point': Option Strict On disallows implicit conversions from 'System.Drawing.Point' to 'System.Drawing.Size'