Is there a way to add code to a control's event at run time? For example. I have 2 commandbuttons on my form and when i press the first one, I want it to place MsgBox("Hi") in the second one's click event.