how to get application folder path in c sharp winforms

Posted by Shanky11 under C# on 10/28/2013 | Points: 10 | Views : 2353 | Status : [Member] | Replies : 1
i have a folder name =image
there is two image in it
when i need this image at run time how can i fetch this image




Responses

Posted by: Bandi on: 10/28/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Application.Current results in an appdomain http://msdn.microsoft.com/en-us/library/system.appdomain_members.aspx

Application.Current.BaseDirectory should give you the location of the assembly

Reference:
http://social.msdn.microsoft.com/Forums/windows/en-US/cc0cfbc5-5824-4b2e-9e9c-11facad95b46/how-to-get-the-current-directory-path-c-winfows-application
http://www.csharp-examples.net/get-application-directory/

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response