日期:2014-05-20  浏览次数:21103 次

委托
MessageBox.Show("You already speeding, please slow down driving!");


就这句话 我要用到委托将他弹出来 怎么弄?

------解决方案--------------------
lz这样做毫无意义
代码如下
C# code

 delegate DialogResult Dlg1(string aa);
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

      
        private void Form1_Load(object sender, EventArgs e)
        {
            string aa = "Hello  Word";
            Dlg1 a = new Dlg1(MessageBox.Show);
            a(aa);
        }
    }