|
-
May 29th, 2000, 08:31 PM
#1
Thread Starter
Hyperactive Member
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.
-
May 29th, 2000, 08:39 PM
#2
Frenzied Member
try
Code:
imgGGate.Picture = LoadPicture(App.Path & "\GGI.gif")
that should work
-
May 29th, 2000, 08:45 PM
#3
Frenzied Member
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.
-
May 29th, 2000, 08:46 PM
#4
Thread Starter
Hyperactive Member
Thanks Sam, that works great. 
Thanks mark, that works too. 
[Edited by billrogers on 05-30-2000 at 09:47 AM]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|