Results 1 to 8 of 8

Thread: Gosh this should be easy !!!

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    Just tell me how to do this..

    Make a picture variable
    Store a picture from a file in the Hdrive
    Put the picture onto the screen from the var..

    Thanks!

  2. #2
    Guest

    Lightbulb

    Picture Varible

    Code:
    Public Yourvar as IPictureDisp


    ---------------------------------------
    Store a Picture from HD

    Code:
    Set Yourvar = LoadPicture("Picture_Name")


    ---------------------------------------
    Put the Picture onto the screen from the var

    What do you mean by that? Can you express it more clearly?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    Didnt Work

    I loaded a picture with that code and
    it said the object does not support
    that method.. being the IpictureDisplay
    controll does not have the Picture
    property.
    I then tried the property of HPal
    and then I got error 91

    Thanks.

  4. #4
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    He didn't say IPictureDisplay he said IPictureDisp

    I have found it next to impossible loading graphics on the "inside" by creating your own variables be they in this format or in StdPicture format.

    The best way I have found is to place a PictureBox on your form that is always invisible and use that.

  5. #5
    Guest

    Thumbs down Not a good idea

    Not really. PicBoxes and Image Ctls cost a ton of memory, so I'd recommend against using them for heaven's sake if you want speed over ease.

  6. #6
    Guest
    Evan - I abbreviate names and these things, but I NEVER abbreviate code, so you don't have to figure out what it really is.

    Oh, and Where did you get the idea of HPal?

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    I was just tried different
    ways to store a picture
    with that ctrl.


  8. #8
    Guest

    Post




    OK, just making sure you understood that.

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