Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/09/2007, 05:21
Avatar de freegirl
freegirl
Colaborador
 
Fecha de Ingreso: octubre-2003
Ubicación: Catalonia
Mensajes: 4.334
Antigüedad: 21 años, 5 meses
Puntos: 156
Re: Controlar cuando se pulsa Mayúsculas + Enter

Hola,

gracias por la respuesta. Pero ya probé eso anteriormente y tampoco funcionaba.

Al final ya encontré la solución:

Ejemplo

Código:
Private Sub miControl_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles miControl.KeyDown

If e.Modifiers = Keys.Shift Then
    If e.KeyCode = Keys.Enter Then funcionY ()
  Else
    If e.KeyCode = Keys.Enter Then funcionX ()
End If

End Sub

saludos