Hi,
I am creating an instance of a control within my form programatically like so:
Within this control there is this event:
This in turn is handled by this event declaration in the same control:
But I am struggling to reference this event at form level.
How do I wire this event up to the form?
Cheers, Dave.
I am creating an instance of a control within my form programatically like so:
Visual Basic:
Private Sub SetUp()
For Each r As DataRow In dvFilter.ToTable.Rows
Dim o As New ctlMachine(sPath, r)
Next
End Sub
Visual Basic:
Private Sub PictureBox1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseClick
RaiseEvent MouseClicked(dr)
End Sub
Visual Basic:
Public Event MouseClicked(ByVal r As DataRow)
But I am struggling to reference this event at form level.
How do I wire this event up to the form?
Cheers, Dave.