Below is your dialog box in the form of owner / parent.
Success win1 = new Success(); win1.Owner = this;
Below are alternatives if you want to try. If you want to Center it on the screen, use CenterScreen
Manually. The initial location of the window is set with the code or redirected to the default location of Windows.
CenterScreen - the place where the window starts - this is the center of the screen that contains the mouse cursor.
CenterOwner - the window launch location is the center of the window to which it belongs, as indicated by the Window.Owner property.
source share