0
votes

so I'm having some trouble with opening the tab to where I want to drag some data.

I have 2 child MDI forms, with both a listview. I would like to drag a listviewitem from mdichild 1 to mdichild 2.

The problem is that I am not able to find the correct event that makes it possible to SHOW the second form when I drag my data to the corresponding MDI tab.

Right now the only thing I get when I drag data to a MDI tab is the standard black circle with a stripe through it.

Any ideas on how to open the tab?

All help is appreciated

1
Have you checked that the AllowDrop property is true for the target?J...
Yes, but the tab doesn't belong to the target form it seems.voluminat0
Is the MDIChild form's AllowDrop property true?J...
Yes. I can detect a dragover in the MDI now, but this gets triggerd as soon as i leave my first listview, not when I hover a tabvoluminat0
Perhaps show some code, then. You have to handle all of the drag events properly for this to work. Show us what you have so far - specifically what is in the ItemDrag, DragEnter, DragDrop, etc, handlers for the relevant controls.J...

1 Answers

0
votes

It is difficult to tell without code where you problem is, but could it be as simple as this?

Private Sub MDIChildForm_DragEnter(sender As System.Object, e As _
              System.Windows.Forms.DragEventArgs) Handles MyBase.DragEnter
    Me.Activate()
    Me.WindowState = FormWindowState.Normal
End Sub

This will un-minimize and activate the child form when you drag over it. This is assuming your "Tab" is a minimized MDI child form...