
11-21-2003, 02:29 PM
|
|
Regular
|
|
Join Date: Nov 2003
Posts: 67
|
|
a UserControls MouseDown event
|
Can`t I implement a usercontrol`s mousedown code in the form that is hosting it?
The instance of the usercontrol on the form is called "Tables", so my code looks like this:
Private Sub Tables_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
DragBegin Tables.Item(Index)
End If
End Sub
and I put a breakpoint inside the if and the program never gets there.
Anyone know what I`m doing wrong?
|
|