J JB Sep 16, 2003 #1 I'm using an OpenFileDialog and I want to set the Initial directory to the current users desktop, any quick way to get this? Jason
I'm using an OpenFileDialog and I want to set the Initial directory to the current users desktop, any quick way to get this? Jason
J Jay B. Harlow [MVP - Outlook] Sep 16, 2003 #2 Jason, You can use Environment.GetFolderPath to get paths to system folders. Something like: Dim dialog as New OpenFileDialog dialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) Hope this helps Jay
Jason, You can use Environment.GetFolderPath to get paths to system folders. Something like: Dim dialog as New OpenFileDialog dialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) Hope this helps Jay
J JB Sep 16, 2003 #3 Perfect, Thanks Jay B. Harlow said: Jason, You can use Environment.GetFolderPath to get paths to system folders. Something like: Dim dialog as New OpenFileDialog dialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) Hope this helps Jay Click to expand...
Perfect, Thanks Jay B. Harlow said: Jason, You can use Environment.GetFolderPath to get paths to system folders. Something like: Dim dialog as New OpenFileDialog dialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) Hope this helps Jay Click to expand...