"Torsten Zachert" <to************ *@teserco.de> wrote in message
news:OY******** ******@TK2MSFTN GP11.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(Int Ptr hWnd, int Msg, int wParam, int
lParam);
private const int WM_NCACTIVATE = 0x0086;
// to activate
SendMessage(Chi ld.Handle, WM_NCACTIVATE, 1, 0);
// to deactivate
SendMessage(Chi ld.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?