private void cmdRented_Click(object sender, EventArgs e) { var frm = new RentedForm(); frm.ShowDialog(this); }