BUG: Mouse Events Do Not Fire From ADODC (190992)



The information in this article applies to:

  • Microsoft Visual Basic Enterprise Edition for Windows 6.0

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.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open up a standard.exe project. Form1 is created by default.
  2. Go to Projects/Components, and select the Microsoft ADO Data Control (ADODC) 6.0. Drop the ADODC on the form.
  3. 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
    					
  4. Run the Visual Basic application.
  5. Move the mouse over the ADODC, and click a few times anywhere on the control. Note that none of the mouse events are fired.

Modification Type:MajorLast Reviewed:10/31/2003
Keywords:kbBug kbCtrl KB190992 kbAudDeveloper