zl程序教程

您现在的位置是:首页 >  工具

当前栏目

获取应用程序所在目录

应用程序 获取 目录 所在
2023-09-14 08:58:58 时间

实现效果:

  

知识运用:
  Application类的StartupPath属性

  public static string StartupPath {get;}

实现代码:

        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Text = Application.StartupPath;
        }