我对C#不是很熟悉,现在要改一个C#写成的软件,从中文改成英文的,我想问问,有没有方法使得MessageBox上面的按钮变成英文版的?我知道在VC++中可以使用MessageBoxEx或者直接找到这个弹出框,再修改他上面的按钮。那么在C#中怎么实现呢?在英文操作系统中直接实现,我想知道能不能在中文系统中也有这个效果。我不是很熟悉C#,希望大家回答的时候能尽量详细点,谢谢了

解决方案 »

  1.   

    MessageBox上面的按钮是自动按当前区域信息来的
    中文系统 就是 否
    英文系统就是 Yes No  其他的也一样
      

  2.   

    SelectApp.cs using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;namespace WinInformation
    {
        public partial class SelectApp : Form
        {
            private string p_AppName = string.Empty;
            private int int_year;
            public SelectApp()
            {
                InitializeComponent();
            }
            private void SelectApp_Load(object sender, EventArgs e)
            {
    button1.DialogResult = DialogResult.OK;
    button1.Text="Ok";
    button2.DialogResult = DialogResult.Cancel;
    button2.Text="Cancel";
            }
        }
    }Fmain.cs            SelectApp selectApp = new SelectApp();
                if (selectApp.ShowDialog() == DialogResult.OK)
                {
                    //DataShow DS = new DataShow(selectApp.AppName, selectApp.Int_Year);
                    //DS.ShowDialog();
                    //DS.Dispose();
                }
                selectApp.Dispose();
    http://www.mybuffet.cn
      

  3.   

    跟OS相关的,可以自定一个Form做MessageBox。
      

  4.   

    C#作Winform只能作一般的应用, 但你要想很好地控制桌面窗口的话,就只有用MFC了
      

  5.   

    在一个窗体上声明一个DialogResult类型的属性,根据这个属性的取值,运行时动态加载相应的按钮,并设置它们的DialogResult属性,就行了,另说英语,就是鸟语只有有人看得懂那都没问题,当然你看得想办法在上面显示文本!
      

  6.   

    新建一个窗体,比如叫alertfrm,里面拖上你要显示的控件
    当需要提示的时候就显示alertfrm form2=new alertfrm;form2.Show();这个窗体咯~~~~
    你可以把这个窗体设置为焦点,这样你只有关闭了这个窗体才能继续操作
      

  7.   

    在英文操作系统下,他就是yes,no
      

  8.   

    安装 .NET SDK 时不安装“中文语言包”就 OK 了。
      

  9.   

    程序中加一个这个:
                System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
                //SYS
                System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US");