Hi all, I have a custom DragLeave event for multiple buttons, on my DragEnter event I change the backcolor(Yellow) of the flowLayoutPanel to show where the item is going to drop, but if they leave this FLP and enter a diff FLP I want the backcolor(of the first one) to change back to the original color. The DragEnter color change works fine, it is not changing the backcolor back when it leaves the draging on any of the FLPs here is my code
midnightBlue being the original color)
Private Sub FLP_DragLeave(ByVal sender As Object, ByVal e As DragEventArgs)
If e.Data.GetDataPresent("myObject") Then
If e.Effect = DragDropEffects.All Then
Dim flp As FlowLayoutPanel = DirectCast(sender, FlowLayoutPanel)
flp.BackColor = Color.MidnightBlue
End If
End If
End Sub
I do have all the FLPs addhandlers set to this SUB.
Thanks for the help...
Private Sub FLP_DragLeave(ByVal sender As Object, ByVal e As DragEventArgs)
If e.Data.GetDataPresent("myObject") Then
If e.Effect = DragDropEffects.All Then
Dim flp As FlowLayoutPanel = DirectCast(sender, FlowLayoutPanel)
flp.BackColor = Color.MidnightBlue
End If
End If
End Sub
I do have all the FLPs addhandlers set to this SUB.
Thanks for the help...