Documentos de Académico
Documentos de Profesional
Documentos de Cultura
txt
'LlamarlosdesdeeleventoKEYPRESS
'Funcionparaaceptarsolonmeros
PublicSubsoloNumeros(ByRefeAs
System.Windows.Forms.KeyPressEventArgs)
IfChar.IsDigit(e.KeyChar)Then
e.Handled=False
ElseIfChar.IsControl(e.KeyChar)Then
e.Handled=False
Else
e.Handled=True
EndIf
'MsgBox(e.KeyChar.ToString)
EndSub
'Funcionparaaceptarsololetras
PublicSubsoloLetras(ByRefeAs
System.Windows.Forms.KeyPressEventArgs)
IfChar.IsDigit(e.KeyChar)Then
e.Handled=True
ElseIfChar.IsControl(e.KeyChar)Then
e.Handled=False
Else
e.Handled=False
EndIf
EndSub
Pgina1