Anchoring and inheritance (Vb.Net)
I'm making a Windows Forms application, and I need to include a wizard at several places.
Therefore I have create a class Wizard which inherits from Form. On this Wizard I have placed several controls which are anchored to the left, top and right of the Form. This works well if a form inherits from Wizard, unless it is not the same size. If the two forms are of different sizes all of the controls are still anchored to the size of Wizard, and not to the size of the inheriting Form.
I have a nasty temporary solution whereby I resize the Form after initializing the base clas (Wizard). But this means the form is the wrong size on my designer, which is quite irritating.
Can anyone think of a solution to this problem?