![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#3
|
||||
|
||||
|
Hola a todos
yo tengo algo alomejor te sirve 1.- como se puede limitar el ingreso a un Edit con un solo caracter o numero crear un formulario, añadir un Edit y escribir el siguiente código: Código:
Sub edit1_Keypress(KeyAscii As Integer)
If KeyAscii <> Asc("9") Then
'KeyAscii = 8 es el retroceso o BackSpace
If KeyAscii <> 8 Then
KeyAscii = 0
End If
End If
End Sub
Nuevo: Código:
Private Sub edit1_Keypress(KeyAscii As Integer) If Not IsNumeric(Chr$(KeyAscii)) And KeyAscii <> 8 Then KeyAscii = 0 End Sub Pasar de un edit a otro al pulsar Enter: Insertar dos edit y escribir el siguiente código: Código:
Private Sub edi1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{tab}"
KeyAscii = 0
End If
End Sub
Private Sub edi2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{tab}"
KeyAscii = 0
End If
End Sub
![]() Última edición por tazzmk fecha: 23-09-2007 a las 19:50:13. |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Limitar número de usuarios concurrentes | mlara | Firebird e Interbase | 0 | 25-11-2006 21:13:38 |
| Una de paranoias. ¿Que pueden saber de mi solo conociendo mi numero de movil? | papulo | Humor | 12 | 23-09-2005 09:23:18 |
| Ingreso de fechas | miguelb | Varios | 4 | 15-02-2005 11:55:11 |
| Limitar el numero de Registro de una Consulta en FireBird 1.5 | Abel Garcia | Firebird e Interbase | 3 | 08-12-2004 23:57:31 |
| validar que solo entren numero | luigi | Varios | 8 | 29-03-2004 21:04:44 |
|