如何在c#.net的文本框中显示我们的应用程序路径
问题描述:
亲爱的朋友们,
如何在文本框中显示我们的应用程序路径,而不需要像c#.net这样的网页中的任何对话框。
哪个我打开那个路径显示在文本框中就像网页..请帮帮我..
问候,
Vivek .R
Dear Frnds,
How to show our application path in textbox without any dialog box in c# .net like webpage.
which form i open that path is show in textbox like web.. please help me..
With Regards,
Vivek .R
答
它将返回你的应用程序dll路径
string baseDir = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly()。Location);
注意:使用System.Relfection命名空间;
Hi,
It Will return your Applications dlls path
string baseDir = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Note: Use System.Relfection namespace;