zunebuggy65
Active member
- Joined
- Oct 12, 2023
- Messages
- 42
- Programming Experience
- 3-5
So I created a very quick and basic application just to see how it would install. I did Build and also selected a temporary certificate from file.
I installed it. I have a button that loads an image file into a PictureBox. In my app, I have the initial directory set like this:
.
I am guessing this is incorrect since when I click to load the image (after the application is installed on my PC) the default directory is unrecognizable. It is:
That is not at all what I expected as my Application.StartupPath. I don't might having an ini file to load/save settings in AppData but I really expected a more recognizable path for browsing for a file. I guess I chose this because I used to use VB6 and app.path was what we used and Application.StartupPath seemed close to that.
Can anyone tell me what to use for the InitialDirectory so it will make sense to a user that installs the application?
Thank you.
I installed it. I have a button that loads an image file into a PictureBox. In my app, I have the initial directory set like this:
VB.NET:
opnImage.InitialDirectory = Application.StartupPath
I am guessing this is incorrect since when I click to load the image (after the application is installed on my PC) the default directory is unrecognizable. It is:
That is not at all what I expected as my Application.StartupPath. I don't might having an ini file to load/save settings in AppData but I really expected a more recognizable path for browsing for a file. I guess I chose this because I used to use VB6 and app.path was what we used and Application.StartupPath seemed close to that.
Can anyone tell me what to use for the InitialDirectory so it will make sense to a user that installs the application?
Thank you.