Nvm i got it :) // the lower word of wParam holds the controls ID // the HIWORD of wParam holds the notification event code // lparam will be the HWND of the control sending the message. SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);