Open a dialog in the center of the screen, window shapes

I use the System.Windows.Forms.Form.ShowDialog () method, the problem is that it always opens in the upper left or right corner of my application, depending on the location from right to left. Is it possible to center it in the middle of the screen or application?

thank

+5
source share
1 answer

If you use a form, you can use Form.StartPosition . And here is more about this listing: link

+10
source

All Articles