Positioning a dialog in the center of the parent form
Posted on 2007-10-16
In my .Net C# GUI application, I want to display a dialog box from my parent form. I created a new For class and was able to display it using the code snippet below. But, the dialog does not appear in the center of the parent form. How can I position it in the center? I tried using setDesktopLocation( ) but it is not what I want.
StartStop ss = new StartStop();