"Torsten Zachert" <to*************@teserco.de> wrote in message
news:OY**************@TK2MSFTNGP11.phx.gbl...
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?