get the installed path of a vb.net application
Posted
by Matt Facer
on Stack Overflow
See other posts from Stack Overflow
or by Matt Facer
Published on 2010-05-04T15:32:00Z
Indexed on
2010/05/04
15:38 UTC
Read the original article
Hit count: 234
vb.net
|installation
Hi guys... I'm nearly ready to distribute my vb.net application. I have several picturebox files which are loaded currently from c:/temp
I need to change this directory to one that will be OK to use when the user installs it to their PC.
My question is how can I do this? Is there a way to get the installation path, then use that within the code as a variable? eg: myInstalledPath & "/xxx.jpg"
Or... would it be better for me to use mypictures within the mydocuments structure? I'd rather keep all the image files created in a folder which is more hidden from the user (by hidden I mean not cluttering up their own image folders!)
I've tried searching for this, but I seem to get varying results with no real answers... (possibly searching for the wrong thing!)
© Stack Overflow or respective owner