This creates new instance of button object and add it to your form at runtime . Just provide some specific info related to location and size as you need .
VB Code:
Dim Butn As New System.Windows.Forms.Button() Butn.Size = New System.Drawing.Size(150, 30) Butn.Name = "Button1" Butn.Text = "BUTTON1" Me.Controls.Add(Butn)





Reply With Quote