hi,
I want to move a control at runtime so i've starting by implement the following simple code:
Private Sub label1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseDown
IsDragging = True
End Sub
Private Sub panel1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseMove
If IsDragging Then
Label1.Location = New Point(e.X, e.Y)
End If
End Sub
Private Sub label1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseUp
IsDragging = False
End Sub
well, the problem is that for some reason, while in mousedown "mode", the rotine doesn't enter the mouseMove event.
is this the way it should be? while in mouseDown can't raise mouseMove?
thanks
I want to move a control at runtime so i've starting by implement the following simple code:
Private Sub label1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseDown
IsDragging = True
End Sub
Private Sub panel1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseMove
If IsDragging Then
Label1.Location = New Point(e.X, e.Y)
End If
End Sub
Private Sub label1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseUp
IsDragging = False
End Sub
well, the problem is that for some reason, while in mousedown "mode", the rotine doesn't enter the mouseMove event.
is this the way it should be? while in mouseDown can't raise mouseMove?
thanks