> > Could you create a UserControl that contains a GroupBox, and > forwards appropriate properties and methods to the contained > GroupBox? Then the design-mode user could put something on > top of the GroupBox if that was desired <g>. >
Hello. Thanks for answer. Well, I try to do it this way now, but it is very annoyng, because a GroupBox vas just an example. In a real world I would like to inherit from more complex controls. Thus creating a UserControl and putting my complex control on it means to introduce a lot of properties (and methods) of this contained control. :( It really would be great, if we could directly inherit from any visual control - or better any visual control, that can contain other controls (Designer is set to ParentControlDesigner). Stano > At 08:13 AM 9/6/2006, Stanislav PeÅ¥ko wrote > >Hello > > > >How can I make inherited control, which I can edit in design > mode: add more controls on it etc. Basically, I need a > usercontrol, but it cannot by inherited form UserControl > class but from some another class (say GroupBox). If I > inherit directly form GroupBox, I loose design mode > possibilities. I cannot add more controls on it in design > mode (well, I can add them, but it's different. I cannot > position and size it visually). > > > >Is there a way to accomplish this? > > > >Thanks, Stano > > > J. Merrill / Analytical Software Corp > > =================================== > This list is hosted by DevelopMentor® http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com > =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com