本帖最后由 lyinh 于 2018-12-10 17:06 编辑
我在listbox里面调用 DoDragDrop,然后把鼠标拖到C1FlexGridClassic里面去,可以触发C1FlexGridClassic1.DragOver事件,但是触发不了C1FlexGridClassic1.DragDrop,请问怎么设置?谢谢。
C1FlexGridClassic1.DragMode = C1.Win.C1FlexGrid.DragModeEnum.Automatic
C1FlexGridClassic1.DropMode = C1.Win.C1FlexGrid.DropModeEnum.Automatic
Private Sub ListBox1_MouseDown(sender As Object, e As MouseEventArgs) Handles ListBox1.MouseDown
C1FlexGridClassic1.DoDragDrop("", DragDropEffects.All)
End Sub
可以触发:
Private Sub C1FlexGridClassic1_DragOver(sender As Object, e As DragEventArgs) Handles C1FlexGridClassic1.DragOver
End Sub
无法触发:
Private Sub C1FlexGridClassic1_DragDrop(sender As Object, e As DragEventArgs) Handles C1FlexGridClassic1.DragDrop
End Sub
|
|