Here is how to use that piece of code with a putton named command1(the default name of the first button you make) place this code in to your program.
and that will do it for you k.Code:Private Sub Command1_Click()
Command1.Caption = "changed"
End Sub
