If you want to add a control to some container at runime, you just add it to the container's Controls collection.
For example, if you want to add a button to a form:
| 1 | PrivateSubForm1_Load(ByValsenderasObject,ByValeasEventArgs)HandlesMyBase.Load |
| 2 | DimbasButton=newButton() |
| 3 | b.Text="Test" |
| 4 | b.Anchor=AnchorStyles.LeftOrAnchorStyles.Top |
| 5 | Me.Controls.Add(b) |
| 6 | EndSub |
| 7 | |
Regards
-- Don't forget to close the thread by marking the correct post(s) as ANSWERED!