首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

嘱托

2011-12-24 
委托MessageBox.Show(You already speeding, please slow down driving!)就这句话我要用到委托将他弹出

委托
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);        }    } 

热点排行