I have a form that is used as a custom message box, the code snippet attached is one of the ways it is called.
But I have a problem with this, when you click the OK button all the application flashes, and for a while you can see the applications that are backwards.
Am I doing something wrong with this?
Please help me.
public static DialogResult ShowBox(IWin32Window owner, string sMsg)
myMsgBox = new MsgBox();
myMsgBox.lblHeader.Text = "DOMI";
myMsgBox.lblMessage.Text = sMsg;
myMsgBox.TopLevel = true;