Hi,

I am dynamically adding control to a form and assigning event handlers for them but what I trying to figure out is if I can determine the type of event that called the handler. ie

Public sub addTextBox

Dim newTB as New TextBox
AddHandler newTB.Click, anyClick
AddHandler newTB.DoubleClick, anyClick
Me.Controls.Add(newTB)

End Sub


Public Sub anyClick(sender as Object, e as EventArgs)

<--- Can I tell if it was a click or double click
.....

End Sub


Cheers

Mark