Results 1 to 4 of 4

Thread: PictureLoad

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    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.

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    try
    Code:
    imgGGate.Picture = LoadPicture(App.Path & "\GGI.gif")
    that should work

  3. #3
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    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.
    Mark
    -------------------

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    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
  •  



Click Here to Expand Forum to Full Width