Rank: Member
Groups: Member
Joined: 5/27/2004(UTC) Posts: 7
|
I am trying to process Mouse Move events for a BitmapViewer object and I am getting a compile error: The message is - Procedure declaration does not match description of event or procedure having the same name. I am using Code:Sub BitmapViewer1_MouseMove(Button As Long, Shift As Long, x As Long, y As Long)
any ideas as to what the problem might be? Edited by user Monday, December 24, 2007 5:14:34 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Did you generate this event handler by VB6 IDE or write it manually? Try this one: Code:Private Sub BitmapViewer1_MouseMove(ByVal button As Long, ByVal shift As Long, ByVal x As Long, ByVal y As Long)
End Sub
As far as I remember VB6 uses ByRef by default. So your event handler has wrong arguments list. Edited by user Monday, December 24, 2007 5:14:44 PM(UTC)
| Reason: Not specified
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.