如何在c#.net的文本框中显示我们的应用程序路径 [英] How to show our application path in textbox in c# .net
本文介绍了如何在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;
这篇关于如何在c#.net的文本框中显示我们的应用程序路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文