private void button1_Click(object sender, EventArgs e) { HacerServicioVENTA fmservicios = new HacerServicioVENTA(principal); fmservicios.Show(); this.Close(); }
private void ventaToolStripMenuItem_Click(object sender, EventArgs e) { HacerServicioVENTA venta = new HacerServicioVENTA(principal); Size desk = System.Windows.Forms.SystemInformation.PrimaryMonitorSize; venta.Width = (this.Width / 2) + 170; venta.Height = this.Height - 68; Int32 ancho = (this.Width / 2) - 190; venta.Location = new Point(ancho, 0); venta.MdiParent = this; venta.Show(); }