![]() Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.ClickĬards.Location = New (58, 38)Ĭards.Size = New (206, 324)Ĭ = "Flow" & i.ToStringĬ = "Group" & i.ToStringĪddHandler, AddressOf FlowLayoutPanel1_GiveFeedbackĪddHandler, AddressOf FlowLayoutPanel1_DragEnterĪddHandler, AddressOf flowLayoutPanel1_DragDropĪddHandler FlowLayoutPanel1.GiveFeedback, AddressOf Card_GiveFeedbackĪddHandler FlowLayoutPanel1.DragEnter, AddressOf Card_DragEnterĪddHandler FlowLayoutPanel1.DragDrop, AddressOf Card_DragDropĪddHandler cards.MouseDown, AddressOf Card_Mousedown Public Sub Card_GiveFeedback(sender As Object, e As GiveFeedbackEventArgs) If e.AllowedEffect = DragDropEffects.Move AndAlso e.Data.GetDataPresent(carddragtype) ThenĬardgetsource = CType(e.Data.GetData(carddragtype), Card) Public Sub Card_DragEnter(sender As Object, e As DragEventArgs) Public carddragcursor As Cursor, carddragtype As Type In my Module: note Card is the name of my UserControl the problem is only the Add group which is a usercontrol I created. the arrangement would remain (Group1,Group3,Group2). When I drag Group3 in between of Group1 and Group2 or in front of Group1. When i drag Group2, the only arrangement I can do is (Group1,Group3,Group2) When I drag card1 the only arrangement I can do is (Group2,Group3,Group1) where I drag Group1 at the left side of Group 3, if I put Group1 in between of Group2 and Group3, it does not work. ![]() The problem is only the dragging drop part where for example i have made Group1, Group2, Group3, Can anybody help mi fixing a bug using a Usercontrol as child in flowlayoutpanel?
0 Comments
Leave a Reply. |