Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/02/2011, 08:34
Avatar de Aquaventus
Aquaventus
 
Fecha de Ingreso: junio-2010
Ubicación: Lima-Peru , En el alba de la naturaleza
Mensajes: 2.105
Antigüedad: 13 años, 10 meses
Puntos: 267
Respuesta: Llamar form presionando F5

Hola zorrillafrancis lo deseas llamar desde un formulario?, si es asi, entonces del formulario que lo quieras llamar en su evento keydown colocas este code :
Código c#:
Ver original
  1. FuncKeysModule(e.KeyCode);
Y luego creas esta funcion para que veas el resultado. Obviamente le cambias el mensaje de salida por la muestra de tu form frmForm.show();
Código c#:
Ver original
  1. public void FuncKeysModule(Keys value)
  2.         {
  3.             //Check what function key is in a pressed state, and then perform the corresponding action.
  4.             switch (value)
  5.             {
  6.                 case Keys.F1:
  7.                     //Add the code for the function key F1 here.
  8.                     MessageBox.Show("F1 pressed");
  9.                     break;
  10.                 case Keys.F2:
  11.                     //Add the code for the function key F2 here.
  12.                     MessageBox.Show("F2 pressed");
  13.                     break;
  14.                 case Keys.F3:
  15.                     //Add the code for the function key F3 here.
  16.                     MessageBox.Show("F3 pressed");
  17.                     break;
  18.                 case Keys.F4:
  19.                     //Add the code for the function key F4 here.
  20.                     MessageBox.Show("F4 pressed");
  21.                     break;
  22.                 case Keys.F5:
  23.                     //Add the code for the function key F5 here.
  24.                     MessageBox.Show("F5 pressed");
  25.                     break;
  26.                 case Keys.F6:
  27.                     //Add the code for the function key F6 here.
  28.                     MessageBox.Show("F6 pressed");
  29.                     break;
  30.                 case Keys.F7:
  31.                     //Add the code for the function key F7 here.
  32.                     MessageBox.Show("F7 pressed");
  33.                     break;
  34.                 case Keys.F8:
  35.                     //Add the code for the function key F8 here.
  36.                     MessageBox.Show("F8 pressed");
  37.                     break;
  38.                 case Keys.F9:
  39.                     //Add the code for the function key F9 here.
  40.                     MessageBox.Show("F9 pressed");
  41.                     break;
  42.                 case Keys.F10:
  43.                     //Add the code for the function key F10 here.
  44.                     MessageBox.Show("F10 pressed");
  45.                     break;
  46.                 case Keys.F11:
  47.                     //Add the code for the function key F11 here.
  48.                     MessageBox.Show("F11 pressed");
  49.                     break;
  50.                 case Keys.F12:
  51.                     //Add the code for the key F12 here
  52.                     MessageBox.Show("F12 pressed");
  53.                     break;
  54.             }
  55.         }
Espero que te haya sido de utilidad. Saludos!
__________________
Internet es tener todo el conocimiento global a tu disposición.
Desarrollo de Software - Ejemplos .Net