Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 20-Feb-14 23:14pm
v2
Comments
Shafeequl 21-Feb-14 5:16am    
Question not Clear,
I think you are asking for this
textbox1.text=Application.startuppath

1 solution

Hi,
It Will return your Applications dlls path

string baseDir = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

Note: Use System.Relfection namespace;
 
Share this answer
 
v2
Comments
Member 10611310 21-Feb-14 5:36am    
Thanks 2 All.. Its Working
Member 10611310 21-Feb-14 6:18am    
i no need dll path i want file path can u help me...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900