My question is how to know if a MessageBox
is already open so that they do not open more of the same message ??
private void timer1_Tick(object sender, EventArgs e)
{
//panelimgop.Location = new Point(panelimgop.Location.X + -5, panelimgop.Location.Y);
//if (panelimgop.Location.X > this.Width)
//{
// panelimgop.Location = new Point(0 - panelimgop.Width, panelimgop.Location.Y);
//}
string optr = cboperator.Text;
if (optr != "")
{
DialogResult resul = MessageBox.Show("Operator Name : " + formcs.selcopert() + " ", "Operator Information", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if (resul == DialogResult.Yes)
{
}
if (resul == DialogResult.No)
{
cboperator.Text = "";
optr = "";
lboperator.Text = "";
}
}
}
This is my message to open many times the same.