I'm getting 2 errors whid this code
Handles clause requiers a WithEvent variable defined in the containing type or one of its base types.Code:Private Sub UserControl11_ButtonPressed(ByVal sender As Object, ByVal e As System.EventArgs) Handles UserControl11.ButtonPressed points = UserControl1.Points_Send End Sub
Reference to a non-shered member requires an object reference.
However if i use this code i only get the lime error
Code:Private Sub UserControl11_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles UserControl11.MouseClick, points = UserControl1.Points_Send End Sub




Reply With Quote