
27/09/2005, 09:29
|
 | | | Fecha de Ingreso: diciembre-2004 Ubicación: Cusco - Perú
Mensajes: 2.248
Antigüedad: 20 años, 3 meses Puntos: 7 | |
Así:
Código:
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
'If Char.ToUpper(e.KeyChar) = Convert.ToChar(Keys.A) Then ' También válido
If Char.ToLower(e.KeyChar) = "a" Then
e.Handled = True
End If
End Sub
Saludos |