WindowsForms Help

0

I'm having a hard time displaying on Form. I have a main Form (fmrPrincipal) and another Form to register a client (fmrCadastraCustomer). Inside fmrPrincipal has a menu with the field "Client" and then the user selects "Register client". The moment he clicks on this option, I want it to look like the photo below:

This image I did in Paint, because I could not do it inside Visual Studio. How could I leave him like this? I am searching in some forums but so far nothing. Is there another way beyond what I'm thinking?

Thank you!

    
asked by anonymous 19.05.2017 / 22:00

2 answers

0

No FormPrincipal set the property IsMDIContainer to true, and at the time of opening FormCadastraCliente put the property MdiParent as its current form ('this').

Ex:

frmCadastraCliente form = new frmCadastraCliente();
form.MdiParent = this;
form.WindowState = FormWindowState.Maximized;
form.Show();
    
19.05.2017 / 22:07
-1
  

Do this at the click of your Add Customer button.

Form entrar = new frmMenuPrincipal();
 entrar.Show();

Just change the frm for yours, this is an example of my code.

frmMenuPrincipal (); is the form you created from the registry.

This "in", you can change to anything, is a variable.

    
20.05.2017 / 02:41