if you use vb6 then try it easily:
Private Sub Command1_Click()
Command1.Caption = "Hello World"
End Sub
abu taher
Practically a Posting Shark
845 posts since Jul 2008
Reputation Points: 14
Solved Threads: 78
You said the buttons 'name' doesnt change, but you are assigning a value to its Text property. The Text property is the string shown on the button, but the buttons name is used to identify it within the application.
The code you have written will change the text on the button when you click it. Its name will still be Button1.
Ryshad
Nearly a Posting Virtuoso
1,307 posts since Aug 2009
Reputation Points: 512
Solved Threads: 246