I have a regular message box popping up from the server side (see code below). It works fine, but it pops up frequently behind the application at the very initial one or two poppings. I can see the messagebox icon on the bottom window bar (see attached). If I minimize the appliation, I can see the message box. See the attached. I can choose OK or Cancel on the box. It seems that it won't display behind the application again after that. If I did not minimize the application and I did not see the icon, I would not be able to respond the messagebox, and the application would be hanging up.
I'm wondering why that happens? How can I fix it?
protected void DevSelected(object sender, System.EventArgs e)
if (MessageBox.Show("Are you sure you want to make a switch and ignore data on this page?", "Confirm Switch", MessageBoxButtons.YesNo) == DialogResult.Yes)