private void PopupTimerRB_Tick(object sender, EventArgs e) { panelPopup.Height = panelPopup.Height - 20; if (panelPopup.Height <= 0) { PopupTimerRB.Stop(); this.hided = true; this.Refresh(); } }
/* private void DayscomboBox_KeyPress(object sender, KeyPressEventArgs e) * { * if (DayscomboBox.SelectedIndex != -1) * { * e.Handled = true; * } * else if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar)) * { * e.Handled = true; * DaysStayerrorProvider.SetError(this.DayscomboBox, "Only Numerical is valid"); * } * else * DaysStayerrorProvider.Clear(); * } * * private void DayscomboBox_Leave(object sender, EventArgs e) * { * if (string.IsNullOrWhiteSpace(DayscomboBox.Text)) * DayscomboBox.SelectedIndex = 0; * } * * private void DayscomboBox_SelectedIndexChanged(object sender, EventArgs e) * { * if ((string)DayscomboBox.SelectedValue == "More") * { * DayscomboBox.SelectedIndex = -1; * } * } */ private void PopupClose_Click(object sender, EventArgs e) { RoomPopuplabel1.Text = "Room "; PopupTimerRB.Start(); }