如何弹出“选择应用程序”这个对话框 就是当找不到合适的程序打开一个文件时,会弹出 应用程序选择 对话框 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 OpenFileDialog ?OpenFileDialog openFileDialog=new OpenFileDialog();openFileDialog.InitialDirectory="c:\\";//注意这里写路径时要用c:\\而不是c:\openFileDialog.Filter="文本文件|*.*|C#文件|*.cs|所有文件|*.*";openFileDialog.RestoreDirectory=true;openFileDialog.FilterIndex=1;if (openFileDialog.ShowDialog()==DialogResult.OK){} ProcessStartInfo info = new ProcessStartInfo("e:\\projects\\test.nsi"); info.UseShellExecute = true; Process.Start(info); http://topic.csdn.net/u/20090710/21/e7d57fc8-bf89-4e1e-890f-ee6b76360f66.html 问一个小码农很伤心的问题 问个问题~父类使用了某个特性,子类继承他的时候是否继承这个特性呢? 这个调用方法的参数怎么写啊 一个笔试题,大家看看 全局变量问题 有关notifyIcon的网络运行环境问题 有关将VB6.0的代码转换C#.net private的结构中,怎么允许public的变量呢? 如何定义一个变量,是SQL的数据类型的枚举类型。 如何用C#写系统监视程序? Sql存储过程 100分请教如何实现电影院里选座位功能?C# winform窗体程序
openFileDialog.InitialDirectory="c:\\";//注意这里写路径时要用c:\\而不是c:\
openFileDialog.Filter="文本文件|*.*|C#文件|*.cs|所有文件|*.*";
openFileDialog.RestoreDirectory=true;
openFileDialog.FilterIndex=1;
if (openFileDialog.ShowDialog()==DialogResult.OK)
{
}
info.UseShellExecute = true;
Process.Start(info);