0
I’m using the following code to call and show the form
in the panel2
of my splitContainer
:
splitContainer.Panel2.Controls.Clear(); // limpa o painel2
form.TopLevel = false; // redefine lvl do form
splitContainer.Panel2.Controls.Add(form); //add formulario ao painel 2
form.Show(); // mostra formulario
And the way out is being:
I wanted to know how I line up form
to the center of my panel2
, being like this:
Or occupying the panel2
whole.
I’ve tried to start the form
as maximized, and at the center changing the properties of it and did not work.