newguy
Well-known member
Hi all.
Working on doing a drag drop from one FlowLayoutPanel to another FLP.
these FLPs are in a user control that is added at runtime and there several of them and I populate them with buttons(not that I coudnt use something else) then need to drag them(the buttons) from one FLP on one UC and drop it on a diff UC's FLP.
Hope this isn't to confusing. So since these button are built at runtime I add a Addhandlers for the event they need later - calling them by sender in the SUB ->this sound right so far?
I have tried everything I can think of, so here I am. Please correct my thought process if it is all messed up - thanks.
Working on doing a drag drop from one FlowLayoutPanel to another FLP.
these FLPs are in a user control that is added at runtime and there several of them and I populate them with buttons(not that I coudnt use something else) then need to drag them(the buttons) from one FLP on one UC and drop it on a diff UC's FLP.
Hope this isn't to confusing. So since these button are built at runtime I add a Addhandlers for the event they need later - calling them by sender in the SUB ->this sound right so far?
VB.NET:
Private Sub MyMouseDown(ByVal sender As Object, ByVal e As MouseEventArgs)
If e.Button = Windows.Forms.MouseButtons.Left Then
dragging = True
End If
End Sub
Private Sub MyMouseMove(ByVal sender As Object, ByVal e As MouseEventArgs)
If dragging Then
If e.Button = Windows.Forms.MouseButtons.Left Then
Me.Cursor = Cursors.Cross
sender.Location = sender.Location + e.Location
End If
End If
End Sub
I have tried everything I can think of, so here I am. Please correct my thought process if it is all messed up - thanks.
Last edited: