-
Code:
imgGGate.Picture = LoadPicture("GGI.gif")
I have this gif stored in the directory of my vb project, does anyone know why this works sometimes, and gives me a Run-time error "53":
File not found "GGI.gif"
I dont believe that a full path would be needed for this, but maybe I am wrong.
-
try
Code:
imgGGate.Picture = LoadPicture(App.Path & "\GGI.gif")
that should work
-
When in development mode your current directory is probably where VB lives
type:
print curdir
in the debug window and you'll get somthing like:
C:\Program Files\Microsoft Visual Studio\VB98
If you
ChDir App.Path
your current dir will be as you expected.
-
Thanks Sam, that works great. :D
Thanks mark, that works too. :D
[Edited by billrogers on 05-30-2000 at 09:47 AM]