Reputation: 11688
I have created a calculator application in C# as an exercise. In this application I have a container with a child form. In the container I have a menu, and when I add a child to the container MDI, I resize the container to fit the child.
My problem is that the menu hide some part of the child - the display of the calculator - and I can't see the numbers.
Example:
Container's menu hiding the top of the calculator display:
After manually resizing the application - i can see the top of the display:
How can I set that the first position available in the container's MDI to put childs is - is under the menu ?
Upvotes: 0
Views: 626
Reputation: 2297
Make sure you Anchor properties are set properly for each control - they are the key to be able to resize a form and have things act as you want.
Upvotes: 1
Reputation: 3428
To start with you don´t need any MDI to have that simple interface. Use a single form, and user UserControl´s for everything else.
UPDATE
Create one UserControl for each of the calculators the assign each type to the menu item click, e.g.: remove or hide the controls.
Upvotes: 0