Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15243

Winforms Visual Inheritance. Inherited control anchoring/positioning not working.

$
0
0
Hi All

I had this problem years ago and was able to solve it but can't, for the life of me, remember how. Pretty sure it was just a property I needed to set somewhere.

I'm adding wizards to an analysis software. The wizards will walk through a series of forms, all of which will share some common behaviour including Previous, Next and Cancel buttons. It seems a no brainer to have frmWizard form with those buttons on it and then inherited other forms from it.

Here's my frmWizard:-
Name:  frmWizard.PNG
Views: 22
Size:  4.6 KB
Note, the buttons are anchored to bottom right.

I inherit from frmWizard creating a larger form and this happens:-
Name:  frmModel.PNG
Views: 21
Size:  6.4 KB

If I resize the form I can see that the buttons are actually still anchored bottom right but they seem to be taking their initial position from the top left of the form.

Any idea how I fix this?
Attached Images
  

Viewing all articles
Browse latest Browse all 15243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>