In my application i used some dialog boxes like about of company some customize message boxes and all that in some dialog boxes I used start position as Center parent but i forget to pass the IWin32Window Owner in show dialog as a parameter regarding that when focus is lost from my application then dialog took desktop as a parent and opens in different locations so always pass window owner as a parameter.
About aboutInfo = new About();
aboutInfo .ShowDialog(this);
or,
aboutInfo .ShowDialog(this.toplevelcontrol);
About aboutInfo = new About();
aboutInfo .ShowDialog(this);
or,
aboutInfo .ShowDialog(this.toplevelcontrol);