Results 1 to 40 of 47

Thread: Control Array in VS 2010

Threaded View

  1. #27

    Thread Starter
    Junior Member drago87's Avatar
    Join Date
    Aug 2010
    Location
    Swaden
    Posts
    21

    Re: Control Array in VS 2010

    I'm getting 2 errors whid this code

    Code:
        Private Sub UserControl11_ButtonPressed(ByVal sender As Object, ByVal e As System.EventArgs) Handles UserControl11.ButtonPressed
            points = UserControl1.Points_Send
        End Sub
    Handles clause requiers a WithEvent variable defined in the containing type or one of its base types.

    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
    Last edited by drago87; Aug 24th, 2010 at 03:35 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width