public FormMain() { InitializeComponent(); btnAdministracion.FlatAppearance.BorderSize = 0; btnAdministracion.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255); btnVentas.FlatAppearance.BorderSize = 0; btnVentas.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255); btnCompras.FlatAppearance.BorderSize = 0; btnCompras.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255); btnFinanzas.FlatAppearance.BorderSize = 0; btnFinanzas.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255); btnAlmacen.FlatAppearance.BorderSize = 0; btnAlmacen.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255); admForm = new AdministracionForm(); almForm = new AlmacenForm(); comForm = new ComprasForm(); venForm = new VentasForm(); finForm = new FinanzasForm(); admForm.TopLevel = false; almForm.TopLevel = false; comForm.TopLevel = false; venForm.TopLevel = false; finForm.TopLevel = false; try { pnlPrincipal.Controls.Add(admForm); pnlPrincipal.Controls.Add(almForm); pnlPrincipal.Controls.Add(comForm); pnlPrincipal.Controls.Add(venForm); pnlPrincipal.Controls.Add(finForm); } catch(Exception e) { System.Console.WriteLine(e.Message); } }
public FormMain() { InitializeComponent(); btnAdministracion.FlatAppearance.BorderSize = 0; btnAdministracion.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255); btnVentas.FlatAppearance.BorderSize = 0; btnVentas.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255); btnCompras.FlatAppearance.BorderSize = 0; btnCompras.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255); btnFinanzas.FlatAppearance.BorderSize = 0; btnFinanzas.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255); btnAlmacen.FlatAppearance.BorderSize = 0; btnAlmacen.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255); admForm = new AdministracionForm(); almForm = new AlmacenForm(); comForm = new ComprasForm(); venForm = new VentasForm(); finForm = new FinanzasForm(); admForm.TopLevel = false; almForm.TopLevel = false; comForm.TopLevel = false; venForm.TopLevel = false; finForm.TopLevel = false; try { pnlPrincipal.Controls.Add(admForm); pnlPrincipal.Controls.Add(almForm); pnlPrincipal.Controls.Add(comForm); pnlPrincipal.Controls.Add(venForm); pnlPrincipal.Controls.Add(finForm); } catch (Exception e) { System.Console.WriteLine(e.Message); } }