Im working on a sub to use for part of this program im working on, but ran into this problem:
In form3 I have a picture box where when the clicks on it it calls for the sub that is located in a module.
VB Code:
Private Sub p1_Click() selectplanet (p1) End Sub
Then in the module I have this code:
VB Code:
Public Sub selectplanet(pbox As PictureBox) msgbox pbox End Sub
but then when i run the project and click on picturebox p1, it says object required and highlights the selectplanet (p1) line, any suggestions?
