明天就交了,大家帮帮忙,实在没找到例子
想实现用单击按钮弹出对话框,再从对话框打开程序,例如exe,rmvb,怎么做
[解决办法]
- C# code
private void button1_Click(object sender, System.EventArgs e){ OpenFileDialog ofd = new OpenFileDialog(); if (ofd.ShowDialog() == DialogResult.OK) System.Diagnostics.Process.Start(ofd.FileName);}