Creating a control that acts as a container in the vs designer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to develop a scrollable panel control similar to what is provided
in the desktop framework (via the ScrollableControl class).
My control would consist of a panel and two scrollbars.
When working with my control in a consuming project I want to be able to
allow controls to be dragged onto the child panel in the designer. How to do
this is not obvious to me as by default nothing can be dragged onto my
control of the child panel.
Any clues as to how to do this would be greatly appreciated.
 
Take a look at the code for the GroupBox control in the Smart Device
Framework:-
http://www.opennetcf.org/sourcebrow...ot/Source/OpenNETCF.Windows.Forms/GroupBox.cs

This is a container control which allows other controls to be added at
design time. There shouldn't be a great deal of work required, but your
control should derive from ContainerControl.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
Back
Top