private void buttonRentalClick(object sender, EventArgs e) { FormEmployRental frm = new FormEmployRental(mainform, id); frm.Owner = this; frm.Show(); this.Visible = false; }
private void labelRentalClick(object sender, EventArgs e) { this.Visible = false; FormEmployRental frm = new FormEmployRental(mainform, id); frm.Owner = this; frm.Show(); frm.Activate(); }