C# 打开另一个窗体,(模态对话框)
Form1 frm= new Form1(); //创建对象
DialogResult retServer = frm.ShowDialog(); //模式对话框
if (retServer == DialogResult.OK)
{
InitConnectString();
}
else
{
return;
}
另一个窗体的保存按钮代码
this.DialogResult = DialogResult.OK;
C# 打开输文件夹
var path = string.Format(@"{0}\..\..\", Application.StartupPath);//(组合为新的字符串) //
path = path + @"Views\" + string.Format(@"{0}\", name);//组合新的路径
System.Diagnostics.Process.Start("explorer.exe", path);

 

相关文章:

  • 2022-01-10
  • 2022-12-23
  • 2022-02-06
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-07-30
  • 2022-12-23
  • 2021-10-14
  • 2022-01-20
相关资源
相似解决方案