title: is there any way to make System.IO.Directory.GetFiles(string) look in the program's directory?
body: <p>I'm trying to use  <code>string[] files = System.IO.Directory.GetFiles("~/Pictures/");</code> to search a folder in the program for picture files. This will later be used to randomly select a picture to display in an image box.I get an error when it tries to find ~/Pictures because the method is looking in 'C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\~\Pictures\'. instead. Isn't the "~" going to make it look in the programs directory? How do I make it look in the programs directory if I don't know what it will be until the program is installed? Any help will be appreciated!!</p>