J
jh
I am trying to create a simple mdi app with a form anchored down the
left of the main form. In this "menu button" form I will have various
buttons etc. (i.e. similar to lots of websites)
However i cannot seem to achieve this. I have created an mdi parent,
created another form and set its MdiParent property to the parent. In
the parents load() function i am doing this:
// Init the MenuBar
MenuBar menuBar = new MenuBar();
menuBar.MdiParent = this;
menuBar.Anchor = AnchorStyles.Left | AnchorStyles.Top |
AnchorStyles.Bottom;
menuBar.Show();
The anchor property doesn't seem to have any affect. Can anyone point me
in the right direction?
Thanks.
left of the main form. In this "menu button" form I will have various
buttons etc. (i.e. similar to lots of websites)
However i cannot seem to achieve this. I have created an mdi parent,
created another form and set its MdiParent property to the parent. In
the parents load() function i am doing this:
// Init the MenuBar
MenuBar menuBar = new MenuBar();
menuBar.MdiParent = this;
menuBar.Anchor = AnchorStyles.Left | AnchorStyles.Top |
AnchorStyles.Bottom;
menuBar.Show();
The anchor property doesn't seem to have any affect. Can anyone point me
in the right direction?
Thanks.