how can I make my use the windows + M key

-1

good I'm working in the language c # but I would like my application to be minimized with the windows + M key thanks for the help

    
asked by Manuel perez carrillo 23.11.2018 в 15:42
source

1 answer

-1

You have to configure windows keyPrewiew = true then you can do this: (obviously in windows form)     

private void inicio_KeyDown(object sender, KeyEventArgs e)
{
        if (e.Control && e.KeyCode == Keys.M  )
            MessageBox.Show("My message");
        //this.WindowState = FormWindowState.Minimized;
}

If you specifically need the windows key you can see this one reference

Greetings

    
answered by 23.11.2018 в 16:18