Button name

12/18/2011 18:49 PraDevil[ELITE]#1
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
12/18/2011 18:58 Dr. Coxxy#2
this is the c/c++ section, not vb.
12/18/2011 19:02 PraDevil[ELITE]#3
my mistake..sorry, please move to the correct section mod..
12/18/2011 19:10 warfley#4
The button name is set by the editor and shouldnt be renamed, maybe you mean the button text?
12/18/2011 19:35 PraDevil[ELITE]#5
yes, its the buton text, btw just now i am trying to load the text from ini files and searching on the internet :)
12/19/2011 00:10 MoepMeep#6
Quote:
Originally Posted by PraDevil[ELITE] View Post
yes, its the buton text, btw just now i am trying to load the text from ini files and searching on the internet :)
StreamReader.