Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateTimePicker - Event Declaration does not match 1

Status
Not open for further replies.

spitzmuller

Programmer
May 7, 2004
98
CH
Hi there

I would like to use the MouseMove-Event on a MS DateTimePicker V6.0 Control. But when I write the declaration (that I got directly from the MSDN Library) like

Private Sub DatePicker1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single, Index As Integer)

I get an compile-time error: "Procedure Declaration does not match description of event or procedure having the same name".

What is going on? What is the right declaration?

Thanks for any help Simon
 
You might have got syntax for VB6. In Access it behaves little different.
Code:
Private Sub MyDatePicker_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Long, ByVal Y As Long)
Remember!! you can easily choose correct code from the code window. Control Name from the left combo and the functions from the right this will insert correct syntax to the window. Some Functions support in VB6 may not support in Access or syntax maight be different.

________________________________________________________________________
Zameer Abdulla
Visit Me
No two children are alike - particularly if one is yours and the other isn't.
 
That whas the right hint! Thanks for your quick help

Greets Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top