|
-
Jun 15th, 2008, 09:46 AM
#1
Thread Starter
Hyperactive Member
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?
-
Jun 15th, 2008, 09:49 AM
#2
Re: picturebox byref
If that's your actual function, the error is because "picture" is a reserved keyword. Try using a different name.
-
Jun 15th, 2008, 09:51 AM
#3
Re: picturebox byref
"picture" is a defined object in VB6 language itself - it must be replaced it with something like
myPicture As Picturebox
or
pct As Picturebox
or whatever but staty away from using reserved workds.
-
Jun 16th, 2008, 02:52 PM
#4
Thread Starter
Hyperactive Member
Re: picturebox byref
no.
What I have now is
Function Hello(mypictureboox1 as picturebox)
and it still doesnt work!!!
-
Jun 16th, 2008, 03:09 PM
#5
Re: picturebox byref
What isn't working exactly? Give us some more details please.
-
Jun 16th, 2008, 03:49 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|