Hi all,
I have created an application in VB .Net. When I run the application to open a file and generate a html file, it worked well. However, when I double click a file to open it and generate a html file, it shows an error could not find the mypicture.bmp. What I have in the generate file is:
Dim myImage As Image = Image.FromFile("mypicture.bmp")
I knew that when I double click on a file to open it, my application will change the directory to that file's directory which does not contain mypicture.bmp file (mypicture.bmp is in bin folder). Is there anyway to fix this kind of problem?
lehuong
I have created an application in VB .Net. When I run the application to open a file and generate a html file, it worked well. However, when I double click a file to open it and generate a html file, it shows an error could not find the mypicture.bmp. What I have in the generate file is:
Dim myImage As Image = Image.FromFile("mypicture.bmp")
I knew that when I double click on a file to open it, my application will change the directory to that file's directory which does not contain mypicture.bmp file (mypicture.bmp is in bin folder). Is there anyway to fix this kind of problem?
lehuong