Dropping Controls On To User Control At Design Time
- From: "Jeff Gaines" <jgaines_newsid@xxxxxxxxxxx>
- Date: Mon, 04 Aug 2008 09:15:25 -0700
I want to create a User Control that will be able to contain other controls - and to be able to drop those other controls on to the user control at design time.
I haven't managed to find anything by Googling - except a MSFT example (IToolboxUserExample) which compiles/runs but doesn't actually seem to do anything. I also found a brief example showing that this could be done by adding a custom designer, unfortunately although the dropped controls seemed to nest themselves on the User Control at design time they disappeared in a puff of smoke when I ran the app.
Is what I am trying to do actually possible? If so can anybody point me to a simple example/article that I can learn from and build on please? I have managed to build a class based on a Panel which does what I want but have had no success with a User Control.
--
Jeff Gaines Damerham Hampshire UK
All things being equal, fat people use more soap
.
- Follow-Ups:
- Re: Dropping Controls On To User Control At Design Time
- From: Olaf Rabbachin
- Re: Dropping Controls On To User Control At Design Time
- Prev by Date: Re: DateTimePicker wrongly displays MinDate when dropdown is press
- Next by Date: Re: setting focus from a TreeView.NodeMouseClick
- Previous by thread: Re: DateTimePicker wrongly displays MinDate when dropdown is press
- Next by thread: Re: Dropping Controls On To User Control At Design Time
- Index(es):
Relevant Pages
|
Loading