By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,806 Members | 1,089 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,806 IT Pros & Developers. It's quick & easy.

UserControl in Listbox

P: n/a
Hi, how can I insert an UserControl as an item in a listbox...

I need this because the amount of UCs displayed isn't alwyas the same,
and I think that displaying UCs in a listbox is the cleanest way,
because the user must be able to reorder the UCs too...

TIA
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Peter,

You really can't as far as I know. You can draw the items that you want
in the listbox yourself, but you really need to be able to do more than it
can offer.

I would recommend your own container control, where you can place your
own controls on it (like a UserControl) and control the position and
ordering yourself.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Peter Osawa" <po****@sun.es> wrote in message
news:ub**************@TK2MSFTNGP09.phx.gbl...
Hi, how can I insert an UserControl as an item in a listbox...

I need this because the amount of UCs displayed isn't alwyas the same, and
I think that displaying UCs in a listbox is the cleanest way, because the
user must be able to reorder the UCs too...

TIA

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.