1
I have the parent form with a Trip menuStrip. I’ve already set him up as isMdiContainer = True
And I have another form I call Services.
In the event MenuStrip > Service I put this:
frmCadastroServico CadastroServico = new frmCadastroServico();
CadastroServico.StartPosition = FormStartPosition.CenterParent;
CadastroServico.Show();
But still it doesn’t open inside the main but a new window, how can I fix it?
thanks bro solved.. Is there anything I can do for him to open the window size (dad)? No maximize buttons minimize etc
– WSS
Okay, I edited with example to get to this
– MurariAlex
Look how it turned out, I edited the question and put the image.. It will be because I need to get exactly the size of the parent form field?
– WSS
Before the
CadastroServico.Show()
addCadastroServico.Dock=DockStyle.Fill;
– MurariAlex
It worked, thank you!
– WSS