Esempio n. 1
0
 private void axWindowsMediaPlayer1_KeyPressEvent(object sender, AxWMPLib._WMPOCXEvents_KeyPressEvent e)
 {
     if (e.nKeyAscii == (char)Keys.Escape)
     {
         this.Close();
         MainScreen ms = new MainScreen();
         ms.Show();
     }
 }
Esempio n. 2
0
 private void VideoPlay_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Escape)
     {
         this.Close();
         MainScreen ms = new MainScreen();
         ms.Show();
     }
 }