Setting the start position for OpenFileDialog/SaveFileDialog

前端 未结 8 1528
野趣味
野趣味 2021-01-01 11:48

For any custom dialog (form) in a WinForm application I can set its size and position before I display it with:

form.StartPosition = FormStartPosition.Manual         


        
8条回答
  •  孤城傲影
    2021-01-01 12:20

    There is quite an old example of one approach on MSDN.

    http://msdn.microsoft.com/en-us/library/ms996463.aspx

    It includes all the code needed to implement your own OpenFileDialog class that allows extensibility.

提交回复
热议问题