private void pbtnHandOver_Click(object sender, EventArgs e) { FormHandOver frmHandOver = new FormHandOver(); if (frmHandOver.ShowDialog() == DialogResult.OK) { ShowRoom(int.Parse(tbcRoomInfo.SelectedTab.Name)); } }