Sure you can.
Dim ctl As New UserControl
ctl.Parent = ListBox1
ctl.Size = New Size(50, 50)
ctl.Location = New Point(10, 10)
ctl.BackColor = Color.Aqua
"Phill W." <p-.-a-.-w-a-r-d@o-p-e-n-.-a-c-.-u-kwrote in message
news:ek**********@south.jnrs.ja.net...
HDI wrote:
>How can i make a listbox where I can add a usercontrol at run time?
Don't think you can.
Try the ListView control instead.
This expects you to add ListViewItem's into it or, better still, classes
of your own that are /derived from/ ListViewItem.
HTH,
Phill W.