Problem with IsMdiContainer

-1

I have 1 parent form (so to speak the menu) and a child form (employees form) using the property in the parent IsMdiContainer = true and coding in the tab used (click event) the following code:

        Ventana_empleados ir_a_emplead = new Ventana_empleados();
        ir_a_emplead.MdiParent = this;
        ir_a_emplead.Show(); 

It is assumed that with this code the child form should be shown inside the parent as follows:

--------- executing program ------------------

------- opting tab employees ---------------

As you can see the child form (employees) is completely mismatched from its dimensions, nor maximizing the tab is able to adjust proportionally to the parent form.

------------------- child form (employees) with original dimensions -------

What am I doing wrong? because the dimensions of each element of my child form are mismatched when I run the program.

    
asked by JL GallardoV 28.02.2018 в 02:53
source

1 answer

0

For all those who have that same problem, it is solved: In the child form in my case the window used, has a property (we can find it in the properties box) called AutoScaleMode that property must be put in Inherit that is:

AutoScaleMode: Inherit

Thanks to those who took the time to answer.

    
answered by 28.02.2018 / 05:58
source