Pergunta

Im trying to make my winforms app respond to Shift + double click left mouse button

Using WndProc

Any suggestions would be great!!

Foi útil?

Solução

Try something like this.

    protected override void WndProc(ref Message m)
    {
        const int WM_LBUTTONDBLCLK = 0x0203;
        switch (m.Msg)
        {
            case WM_LBUTTONDBLCLK:
                {
                    if (Control.ModifierKeys.HasFlag(Keys.Shift))
                    { 
                        //Shift plus mouse left button double clicked
                    }
                    break;
                }
        }
        base.WndProc(ref m);
    }
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top