็How to get path of application if it isn't Windows Form
-
If my application is Windows Form I just use App.StartUpPath,But if it is class library can i get path of library. :confused::confused:
Hi, you will need the Assembly class, get the assembly instance you are interested in (maybe with GetExecutingAssembly), and look at one of its properties (probably Location). :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.
-
Hi, you will need the Assembly class, get the assembly instance you are interested in (maybe with GetExecutingAssembly), and look at one of its properties (probably Location). :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.