void form_mousedoubleclick2(object sender, MouseEventArgs e)
        {
            int wParam;
            int msg;

            if (e.Button == MouseButtons.Left)
            {
                msg    = NativeWIN32.WM_LBUTTONDBLCLK;
                wParam = NativeWIN32.MK_LBUTTON;
            }
            else if (e.Button == MouseButtons.Middle)
            {
                msg    = NativeWIN32.WM_MBUTTONDBLCLK;
                wParam = NativeWIN32.MK_MBUTTON;
            }
            else if (e.Button == MouseButtons.Right)
            {
                msg    = NativeWIN32.WM_RBUTTONDBLCLK;
                wParam = NativeWIN32.MK_RBUTTON;
            }
            else
            {
                msg    = NativeWIN32.WM_LBUTTONDBLCLK;
                wParam = NativeWIN32.MK_LBUTTON;
            }
            NativeWIN32.SendMessage(this.Handle, msg, wParam, NativeWIN32.MakeDWord(e.X, e.Y));
        }
        void form_mouseup(object sender, MouseEventArgs e)
        {
            int wParam;
            int msg;

            _mouseData = e;
            if (e.Button == MouseButtons.Left)
            {
                msg    = NativeWIN32.WM_LBUTTONUP;
                wParam = NativeWIN32.MK_LBUTTON;
            }
            else if (e.Button == MouseButtons.Middle)
            {
                msg    = NativeWIN32.WM_MBUTTONUP;
                wParam = NativeWIN32.MK_MBUTTON;
            }
            else if (e.Button == MouseButtons.Right)
            {
                msg    = NativeWIN32.WM_RBUTTONUP;
                wParam = NativeWIN32.MK_RBUTTON;
            }
            else
            {
                msg    = NativeWIN32.WM_LBUTTONUP;
                wParam = NativeWIN32.MK_LBUTTON;
            }
            NativeWIN32.SendMessage(this.Handle, msg, wParam, (int)NativeWIN32.MakeDWord(e.X, e.Y));
        }
        void form_mousemove(object sender, MouseEventArgs e)
        {
            int wParam;
            int msg = NativeWIN32.WM_MOUSEMOVE;

            if (e.Button == MouseButtons.Left)
            {
                wParam = NativeWIN32.MK_LBUTTON;
            }
            else if (e.Button == MouseButtons.Middle)
            {
                wParam = NativeWIN32.MK_MBUTTON;
            }
            else if (e.Button == MouseButtons.Right)
            {
                wParam = NativeWIN32.MK_RBUTTON;
            }
            else
            {
                wParam = NativeWIN32.MK_LBUTTON;
            }
            NativeWIN32.SendMessage(this.Handle, msg, wParam, NativeWIN32.MakeDWord(e.X, e.Y));
        }
 void form_keyup(object sender, KeyEventArgs e)
 {
     NativeWIN32.SendMessage(this.Handle, NativeWIN32.WM_KEYUP, e.KeyValue, (int)e.KeyCode);
 }