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?:eek:
Printable View
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?:eek:
If that's your actual function, the error is because "picture" is a reserved keyword. Try using a different name.
"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.
no.
What I have now is
Function Hello(mypictureboox1 as picturebox)
and it still doesnt work!!!
What isn't working exactly? Give us some more details please.
mypicturebox1 as Picturebox means you can pass a Picturebox. This begs question what are you trying to pass? A stdPicture?