Drag an Drop in MDI child forms

  • Thread starter Thread starter Torsten Zachert
  • Start date Start date
T

Torsten Zachert

Hi,

I have to Drag an Drop data between 2 listviews in MDI child forms. How do I
activate the target child form, if the mouse is over.

Tia

Torsten
 
Torsten Zachert said:
Hi,

I have to Drag an Drop data between 2 listviews in MDI child forms. How do
I
activate the target child form, if the mouse is over.

Tia

Torsten


using System.Runtime.InteropServices;

[DllImport ("user32.dll")]
public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int
lParam);

private const int WM_NCACTIVATE = 0x0086;


// to activate
SendMessage(Child.Handle, WM_NCACTIVATE, 1, 0);

// to deactivate
SendMessage(Child.Handle, WM_NCACTIVATE, 0, 0);



there's also a select property, that's not intended for use from "your"
code.

Child.Select();

Maybe someone knows why it's not intended from "your" code?
 
Back
Top