I have a form where user can add and position charts and controls for a presentation like app. User can then change it to FullScreen mode, How do I change the size and position of controls to keep a relative position and size?
+2
A:
Store the control sizes / positions as percentages of form width, and use these percentages when the form is resized to programmatically size the controls - that's a simple enough solution that should work nicely.
Will A
2010-07-26 18:11:58
Made it, stored controls controls position size and positions as pencentage and on ResizeEnd event I set their sizes/pos.Simple but elegant at all :P
Marcelo de Aguiar
2010-07-26 18:47:22