string myFile=Path.Combine(Path.GetDirectoryName(Application.ExecutablePath),"DockPanel.config");

StreamWriter sw = new StreamWriter(myFile);

这样就能在程序运行的当前路径创建了DockPanel.config文件。

相关文章:

  • 2022-12-23
  • 2021-09-23
  • 2021-07-27
  • 2022-12-23
  • 2022-01-14
  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2022-12-23
  • 2021-12-17
  • 2021-09-26
  • 2021-05-25
  • 2021-11-21
  • 2022-12-23
相关资源
相似解决方案