Problems scaling flowLayoutPanels

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ania1984
    New Member
    • Jan 2008
    • 4

    Problems scaling flowLayoutPanels

    Hello,

    I have a form with several controls and one panel (C#). Inside this panel, I create two FloyLayOutPanel s. In execution time, I add a lot of panels to each of the flowLayoutPanel s.
    I have a button to do zooms into the flowlayoutpanel s of the main panel. If the user clicks the button, the next code is executed:

    flowLayoutPanel LineA.Scale(new SizeF(2, 1));
    flowLayoutPanel LineB.Scale(new SizeF(2, 1));

    The result of these scales is a mess:
    - Some of the panels disappear
    - At the begginnig, the panels have different sizes, but after doing some zooms, all the panels have the same size
    - The location of the flowlayoutPanel s respect the main panel changes
    - ...

    Can anybody help and tell me what is happenning?
    Thanks
Working...