Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding design-time support for a nested container in a custom/usercontrol (Winforms)

Tags:

I have something similar to a wizard control, in the middle is a Panel I would like to use to place any child controls.

I have found using the ScrollableControlDesigner will allow dropped controls to be added to the custom/usercontrol, but this is not what I require. It needs to be added to the container, so layout can be applied without affecting the 'outer' controls (heading, navigation buttons).

I have tried various ways, that did not work, and looked hacky.

Any ideas?

like image 609
leppie Avatar asked Feb 27 '09 13:02

leppie


1 Answers

I found the answer here!

The key is ControlDesigner.EnableDesignMode().

like image 95
leppie Avatar answered Oct 04 '22 21:10

leppie