获取应用程序所在目录

实现效果:

  

知识运用:
  Application类的StartupPath属性

  public static string StartupPath {get;}

实现代码:

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

猜你喜欢

转载自www.cnblogs.com/feiyucha/p/10236161.html
今日推荐