Change default arrangement of Save and Cancel buttons in SaveFileDialog

后端 未结 3 747
梦如初夏
梦如初夏 2021-01-15 10:50

I m coding in c# and I want to change the default arrangement of \'Save\' and \'Cancel\' buttons in SaveFileDialog. The default arrangement is that the \'Save\' button is ab

3条回答
  •  鱼传尺愫
    2021-01-15 11:28

    That rings a bell. When you have the code to change the text of the button then you have the handle of the button window. Which you can then use when you pinvoke GetWindowRect and MoveWindow to move the button somewhere else. Visit pinvoke.net for the declarations.

    Beware that the dialog changed in every Windows version. The next one might well break your program. Your customer is not going to be disappointed when you don't do this.

提交回复
热议问题