views:

163

answers:

1

I would like to write an extension to the VisualStudio form designer which automatically corrects some properties of controls:

More specifically, I would like to be able to select a TableLayoutPanel, invoke some command (menu, macro, verb, whatever) and have the AutoSize, Anchor, Margin, Padding etc. properties of the contained controls adjusted in some way (depending on the type of the controls, position in grid etc.).

The documentation about Automation and Extensibility of VS in MSDN seems to be very comprehensive but I couldn't find a topic about extending the form designer.

I would appreciate any advice on how I can query/manipulate controls in the form designer 'from outside' (I'm aware I could derive my own controls and implement custom designers for them but I'd rather avoid that...)

Thanks in advance!

+2  A: 

Ok, I finally found some resources on the topic:

I think, I'll go on with these...

MartinStettner