Results 1 to 6 of 6

Thread: picturebox byref

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2007
    Posts
    259

    Question picturebox byref

    whenever I make a function that needs a picturebox, for example:

    Function Hello(picture as picturebox)

    whenever I put a picturebox there a message comes up saying

    ByRef argument type mismatch.

    What can I do?

  2. #2
    PowerPoster Ellis Dee's Avatar
    Join Date
    Mar 2007
    Location
    New England
    Posts
    3,530

    Re: picturebox byref

    If that's your actual function, the error is because "picture" is a reserved keyword. Try using a different name.

  3. #3

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2007
    Posts
    259

    Re: picturebox byref

    no.
    What I have now is

    Function Hello(mypictureboox1 as picturebox)

    and it still doesnt work!!!

  5. #5

  6. #6
    Cumbrian Milk's Avatar
    Join Date
    Jan 2007
    Location
    0xDEADBEEF
    Posts
    2,448

    Re: picturebox byref

    mypicturebox1 as Picturebox means you can pass a Picturebox. This begs question what are you trying to pass? A stdPicture?

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