MDI Child form size problem

Amr Ashraf

Member
Joined
Apr 5, 2022
Messages
14
Programming Experience
Beginner
Hello guys , I have problem with the size of MDI Child form as following :
I have MDI Container form and use this code to open child form
Open Child:
 FrmCodes FCode = new FrmCodes();
            FCode.MdiParent = this;
            FCode.Show();

This is my child form result >> Window State Maximized

4.png



This Area on the right not filled with the child form i don’t know why .. Maximized - Center of Screen .
The second problem that the form in the design mode looks like this

FrmCodes.png


The size and the spacing is so different even if the window state was normal not maximized , I use anchor property for the listbox Top-Right-Bottom and for the tab group Top-Left-Bottom , The rest controls are default anchoring .

And strange problem happens sometimes controls disappears for no reason and checked anchoring

Design
10.png


Debugging

11.png




I need two things , First Debugging And Design Mode should have the same look spacing and size wise , Second the child form when maximized fill the screen with appropriate controls sized .
Sorry guys for the long post , I’m a beginner , Thanks in advance.
My Project is attached .
 
Last edited:

Latest posts

Back
Top Bottom