Home » FAQ » WinForms » Layout » How can I programmatically set the initial position of a Form so that it is displayed properly after calling ShowDialog()
In addition to setting the Location property of the form, make sure you also set the StartPosition property of the form to FormStartPosition.Manual.
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with