VS2005 anchor problems on inherited form with a tab control

Anchors of controls, other than Top-Left, on a form that inherits from a form that has a tab control on it creates unpredictable results.  This applies to controls placed on tab pages.  When the solution runs and the derived form displays the controls may not be in the position where you last placed them.  Likewise, when the solution is closed and re-opened the controls may not be in the position where you last placed them. I confirmed this by testing all scenarios using, and not using form inheritance, tab controls, and anchoring as variables. 


Answer this question

VS2005 anchor problems on inherited form with a tab control

  • SimonCore

    Can you create a simple form which reproduces this behavior and post the code from Designer.cs

  • Gabriel Mongeon

    I get the same experience in a simple 3 form project even on a form without a tab control.
    If you anchor an iamge bottom, left & right on the base form, then create an inherited form which you make bigger than the base form, the image does not sit on the bottom of the inherited form.


  • VS2005 anchor problems on inherited form with a tab control