Yo tp entiendo mucho qué preguntas, pero de todas formas héchale un vistazo a ese código, a ver si te sirve:
Código:
PrivateSub CmdButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdButton1.Click
MsgBox ("¡Hola Mundo!")
EndSub
ciao