How do I change, for example, the behavior (the code) of an onclick event at runtime?
Or how do I set the behavior of button created dinamically at runtime?
Private Sub Command1_Click()
Form1.Controls.Add "VB.CommandButton", "btnObj"
.Visible = True
And now how do i programm the events?