Click here to Skip to main content
15,895,192 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need a code for add a button
Posted
Comments
[no name] 15-Jul-11 5:51am    
where do you want to add the button ?
Wayne Gaylard 15-Jul-11 5:53am    
What have you tried ? Where are you stuck ? Have you even opened up Visual Studio ?

Nope: you actually need reading a good book (or tutorial) on Visual Basic.
 
Share this answer
 
v2
It won't actually DO anything, you need to add a Handler for the click event, but...
Dim b As New Button()
b.Text = "Hello"
Controls.Add(b)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900