实现效果:
知识运用: Application类的StartupPath属性
public static string StartupPath {get;}
实现代码:
private void button1_Click(object sender, EventArgs e) { textBox1.Text = Application.StartupPath; }
获取应用程序所在目录
原文:https://www.cnblogs.com/feiyucha/p/10236161.html