Say I have an object that I dynamically create. For example, say I create a button called "MyButton":
Dim MyButton as New Button()
MyButton.Name = "MyButton"
How do I create, say, a "Click" event? If it were statically created I could create a function as:
Private Sub MyButton_Click(ByVal sender as system.object, ByVal e As System.EventArgs) Handles.
How do I implement an event handler for MyButton?