Microsoft KB Archive/190992

= BUG: Mouse Events Do Not Fire From ADODC =

Article ID: 190992

Article Last Modified on 10/31/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q190992



SYMPTOMS
Clicking on the ADODC during run-time will not fire the mouse events associated with the control. It does not matter if you have the ADODC control bound to a recordset.



WORKAROUND
You use the Mouse Events to trap recordset moves. Use the WillMove and the MoveComplete events instead, because they provide more control over recordset positioning than the Mouse Events.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
 Open up a standard.exe project. Form1 is created by default. Go to Projects/Components, and select the Microsoft ADO Data Control (ADODC) 6.0. Drop the ADODC on the form.  Insert the following code in the General Declarations of the Form: Private Sub Adodc1_MouseDown(Button As Integer, Shift As Integer, x _   As Single, y As Single) Debug.Print "Down" End Sub

Private Sub Adodc1_MouseMove(Button As Integer, Shift As Integer, x _   As Single, y As Single) Debug.Print "Move" End Sub

Private Sub Adodc1_MouseUp(Button As Integer, Shift As Integer, x _   As Single, y As Single) Debug.Print "Up" End Sub  Run the Visual Basic application. Move the mouse over the ADODC, and click a few times anywhere on the control. Note that none of the mouse events are fired.</ol>

Keywords: kbbug kbctrl KB190992

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.