Create new dynamic button in vb.net
It’s very simple under stable code is following.
For add any control you must need assign name and
location,
For label and textbox these method also work.
You also add dynamic textbox and label by use of
these code
tmp.Location = New System.Drawing.Point(30, 232)
tmp.Name = "Demo"
tmp.TabIndex = 4
tmp.Text = "New Demo Button"
tmp.Visible = True
Me.Controls.Add(tmp)
No comments:
Post a Comment