I'm using the following code to call and show form
in 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 output is:
Iwantedtoknowhowtoalignform
tothecenterofmypanel2
,thus:
Or occupying panel2
everything.
I already tried to start form
as maximized, and to the center changing properties of it and it did not work.