Results 1 to 7 of 7

Thread: Picture Box Variable Usage?? *Answered*

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    Florida
    Posts
    98

    Picture Box Variable Usage?? *Answered*

    Morning ladies, gentlemen, small children, pets and UDP packets.

    I have been looking around for a few days and still unable to find the meaning to life. Maybe i have been asking the wrong question but who knows. If someone could answer it for me, I would greatly appreciate it and be able to live in a state of ahh knowing such knowledge

    Mostly i am wondering about using a variable declared as a picturebox variable. I was wondering if its possible to declare said variable and not use an actual picture box item to work with the picture?

    For Example:



    VB Code:
    1. Dim Picture1Temp As PictureBox
    2.     Dim picture2Temp As PictureBox
    3.    
    4.     picture2Temp.Picture = LoadPicture(sDir & sFileName)

    the above code doesn't quite work when you go to load the picture you get the error . .

    Number: 91

    Object variable or with block variable not set.

    Now i know i am just overlooking something obvious, i don't normally work with graphics much and have been running a fever for 2 days, so needless to say, ye old brain is taking a vacation without me. Thanks much in advance for any assistance.
    Last edited by TheVoid; Sep 13th, 2002 at 07:59 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