Inheritance and Anchors in dialogs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I create a first Dialog form with in particular two buttons, "Ok" an "Cancel", and set the Anchor properties of theses buttons to Bottom, Right (so, if I change the size of the dialog, the Ok and Cancel button are still positionned at bottom-right)

In order to share all the control defined in the first dialog and to add some new controls, I create a new Dialog Form that inherits from the first

When I change the size of the sub-class Form, the two button positions are calculated from the siz
of the first dialog, and not the second one ???

How can I solve this ?
 
* "=?Utf-8?B?VmluY2VudA==?= said:
I create a first Dialog form with in particular two buttons, "Ok" an "Cancel", and set the Anchor properties of theses buttons to Bottom, Right (so, if I change the size of the dialog, the Ok and Cancel button are still positionned at bottom-right).

In order to share all the control defined in the first dialog and to add some new controls, I create a new Dialog Form that inherits from the first.

When I change the size of the sub-class Form, the two button positions are calculated from the size
of the first dialog, and not the second one ???

Works without any problems for me (VS.NET 2003, Windows XP Professional).
 
Back
Top