Re: Dropping Controls On To User Control At Design Time
- From: Olaf Rabbachin <Olaf_NoSpam@xxxxxxxxxxxx>
- Date: Tue, 5 Aug 2008 09:16:13 +0200
Hi,
Jeff Gaines wrote:
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.
Your control will need to inherit from ContainerControl.
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.
Check out this article, it should get you started:
http://www.codeproject.com/KB/toolbars/MSOfficeTaskPane.aspx
Cheers,
Olaf
.
- Follow-Ups:
- Re: Dropping Controls On To User Control At Design Time
- From: Jeff Gaines
- Re: Dropping Controls On To User Control At Design Time
- References:
- Dropping Controls On To User Control At Design Time
- From: Jeff Gaines
- Dropping Controls On To User Control At Design Time
- Prev by Date: Re: setting focus from a TreeView.NodeMouseClick
- Next by Date: RE: DateTimePicker wrongly displays MinDate when dropdown is pressed.
- Previous by thread: Dropping Controls On To User Control At Design Time
- Next by thread: Re: Dropping Controls On To User Control At Design Time
- Index(es):
Relevant Pages
|
Loading