开发者

How to change button text in system dialogs(openFileDialog,SaveFileDialog)?

开发者 https://www.devze.com 2023-04-04 22:10 出处:网络
I must provide my project with multi language.In my project i use common dialogs,which i dont know how to change button texts according to language.But i find this pr开发者_开发知识库oject on CodeProj

I must provide my project with multi language.In my project i use common dialogs,which i dont know how to change button texts according to language.But i find this pr开发者_开发知识库oject on CodeProject .I dont know how to use it.Please help me with this.Regards


You must open the dialog with the right culture on the thread.

System.Threading.Thread.CurrentThread.CurrentUICulture 

This will show the dialog in the language you want.

On the other hand I think it is a bad idea doing manually multilingual support. You are spending time doing things that other already did, tested, documented and supported.


That link is to customize the dialog functionality as it says you could add extra buttons.. but not to change the already existing elements

I think that the only option is to create your own dialog

0

精彩评论

暂无评论...
验证码 换一张
取 消