Component design-time adjust control boundaries
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hey there, I've created a component which renders a menu onto the form it's attached to. However, whenever I place controls in the region where the extension is (i'm extending the glass non-client area using the DWM API methods), it causes the designer to crash and the application itself crashes. Naturally, I need to be able to adjust the boundaries of where controls can be placed at design and run-time. I've considered using the non-client area API methods to increase the height of the caption at design-time, but I was wondering if there's an alternate way of doing this? I've also considering changing the form's padding to suit the height of the glass extension, but this would be modifiable at design time by the user. Thank you.