• <small id='0b2be'></small><noframes id='0b2be'>

        • <bdo id='0b2be'></bdo><ul id='0b2be'></ul>

      1. <legend id='0b2be'><style id='0b2be'><dir id='0b2be'><q id='0b2be'></q></dir></style></legend>
        <i id='0b2be'><tr id='0b2be'><dt id='0b2be'><q id='0b2be'><span id='0b2be'><b id='0b2be'><form id='0b2be'><ins id='0b2be'></ins><ul id='0b2be'></ul><sub id='0b2be'></sub></form><legend id='0b2be'></legend><bdo id='0b2be'><pre id='0b2be'><center id='0b2be'></center></pre></bdo></b><th id='0b2be'></th></span></q></dt></tr></i><div id='0b2be'><tfoot id='0b2be'></tfoot><dl id='0b2be'><fieldset id='0b2be'></fieldset></dl></div>
        <tfoot id='0b2be'></tfoot>

        MessageBox 按钮 - 设置语言?

        时间:2023-08-27

          <tbody id='3vuPq'></tbody>
        <i id='3vuPq'><tr id='3vuPq'><dt id='3vuPq'><q id='3vuPq'><span id='3vuPq'><b id='3vuPq'><form id='3vuPq'><ins id='3vuPq'></ins><ul id='3vuPq'></ul><sub id='3vuPq'></sub></form><legend id='3vuPq'></legend><bdo id='3vuPq'><pre id='3vuPq'><center id='3vuPq'></center></pre></bdo></b><th id='3vuPq'></th></span></q></dt></tr></i><div id='3vuPq'><tfoot id='3vuPq'></tfoot><dl id='3vuPq'><fieldset id='3vuPq'></fieldset></dl></div>

        <legend id='3vuPq'><style id='3vuPq'><dir id='3vuPq'><q id='3vuPq'></q></dir></style></legend>
            • <bdo id='3vuPq'></bdo><ul id='3vuPq'></ul>

                <small id='3vuPq'></small><noframes id='3vuPq'>

                  <tfoot id='3vuPq'></tfoot>
                  本文介绍了MessageBox 按钮 - 设置语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  当您使用 MessageBox.Show() 时,您可以选择 MessageBoxButtons 可供选择.可用的按钮是一个枚举,并为您提供Yes No"、OK Cancel"等选项.

                  When you use MessageBox.Show() you have a selection of MessageBoxButtons to choose from. The buttons available are an enum, and give you options like "Yes No", "OK Cancel", etc.

                  例如,当我使用挪威语消息文本时,用户仍然会收到英文Yes No".

                  When I am using, for instance, Norwegian message text the user still gets the English "Yes No".

                  有没有办法更改按钮的文本(在 C# 中)以使语言正确?我可以覆盖文本,或者以某种方式设置当前语言环境,以便我可以使用Ja Nei"而不是Yes No"吗?

                  Is there a way to change the text of the buttons (in C#) so that the language is correct? Can I override the text, or set the current locale in some way so that I can have "Ja Nei" instead of "Yes No"?

                  我不想依赖在我的客户端安装 .NET 语言包.

                  I do not want to rely on installing a .NET language pack at my client.

                  推荐答案

                  .NET 中没有对此的本地支持(据我所知,无论如何;如果我错了,请纠正我,任何人).我确实遇到了这篇 CodeProject 文章,它似乎通过一些消息挂钩和 P/Invoke 来解决问题:http://www.codeproject.com/KB/miscctrl/Localizing_MessageBox.aspx

                  There is no native support for this in .NET (as far as I know, anyway; please correct me if I'm wrong, anyone). I did come across this CodeProject article, that seem to do the trick with some message hooking and P/Invoke: http://www.codeproject.com/KB/miscctrl/Localizing_MessageBox.aspx

                  这篇关于MessageBox 按钮 - 设置语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何从资源中获取字符串以在 xaml 的 WPF 资源部分 下一篇:如何在设计时将文本从资源文件设置为控件?

                  相关文章

                  最新文章

                  • <bdo id='oeje6'></bdo><ul id='oeje6'></ul>

                      <legend id='oeje6'><style id='oeje6'><dir id='oeje6'><q id='oeje6'></q></dir></style></legend>
                    1. <small id='oeje6'></small><noframes id='oeje6'>

                    2. <tfoot id='oeje6'></tfoot>

                    3. <i id='oeje6'><tr id='oeje6'><dt id='oeje6'><q id='oeje6'><span id='oeje6'><b id='oeje6'><form id='oeje6'><ins id='oeje6'></ins><ul id='oeje6'></ul><sub id='oeje6'></sub></form><legend id='oeje6'></legend><bdo id='oeje6'><pre id='oeje6'><center id='oeje6'></center></pre></bdo></b><th id='oeje6'></th></span></q></dt></tr></i><div id='oeje6'><tfoot id='oeje6'></tfoot><dl id='oeje6'><fieldset id='oeje6'></fieldset></dl></div>