hey guys, just now im trying to learn the basic thing using VB 2008..search over the google but its seem i didnt get an answer for this..what i must do to set the button name automatically when the application start? i'll just try to use this code:
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Button1.Name = "TEST BUTTON"
End Sub
End Class
but when i run the application its just stay on the default button name, btw i have trying to set the button caption to blank then run the application again and again but its seem like its not working at all..any ideas ?
edit:
#solve - i just change "Button1.Name" to "Button1.Text" and its working lol