By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,702 Members | 1,771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,702 IT Pros & Developers. It's quick & easy.

Getting project directory

P: n/a
How can i retreive the directory my project will be in?

TIA,
Ahmed
Nov 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Application.StartupPath
How can i retreive the directory my project will be in?

Nov 20 '05 #2

P: n/a
Beautiful!
Thanks Alot!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #3

P: n/a
* "scorpion53061" <sc************@nospamhereeveryahoo.com> scripsit:
Application.StartupPath


.... for Windows Forms projects ;-).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4

P: n/a
You just can't help yourself can you?
:)
Nov 20 '05 #5

P: n/a
* "scorpion53061" <sc************@nospamhereeveryahoo.com> scripsit:
You just can't help yourself can you?


Mhm... It's more complicated for a DLL...

\\\
Imports System.IO
Imports System.Reflection
..
..
..
Private Function ApplicationPath() As String
Return _
Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
End Function
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6

P: n/a
Thank you for the code snippet there. That will be something I will play
around with tonight.

Speaking of dll's have you tried loading a dll remotely into a windows form
application? I thought this might be the answer to some "theft" issues I was
dealing with but it seems the framework strips the permissions of a dll
loaded in this manner rendering it pretty powerless.
Mhm... It's more complicated for a DLL...

\\\
Imports System.IO
Imports System.Reflection
.
.
.
Private Function ApplicationPath() As String
Return _
Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
End Function
///

Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.