Visual Basic para Aplicaciones - ayuda de combo

Life is soft - evento anual de software empresarial
 
Vista:

ayuda de combo

Publicado por Adrian (2 intervenciones) el 24/03/2006 17:22:27
Necesito bloquear la escritura de un combo para que el usuario solo escoga un elemento de la lista y no pueda escribir sobre el combo el combo esta sobre un formulario de access, por favor ayundenme
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:ayuda de combo

Publicado por Carlos (55 intervenciones) el 27/03/2006 17:02:55
Usa un List Box.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:ayuda de combo

Publicado por yeni (12 intervenciones) el 27/03/2006 20:00:06
Ps hay varias opciones para hacer eso..
la mas facil pero algo larga es esta :

haz esta funcion ... PONLO DONDE QUIERAS.. PERO SI QUIERS K ESTE PARA CUALQUIER COSA .. PS PONLO EN UN MODULO
-----------------
Function solonada(KeyAscii As Integer) As String
If KeyAscii = 8 Then
KeyAscii = 8
ElseIf InStr("", Chr(KeyAscii)) = 0 Then
KeyAscii = 0
End If
solonada = KeyAscii
End Function
------------------------

aHORA EN EL COMBO EN EL EVENTO KEYPRESS PONES ESTO

Private Sub DataCombo1_KeyPress(KeyAscii As Integer)
Call solonada(KeyAscii)
End Sub

--------

CREO K CON ESTA LA HACES
ES UNA DE LAS MAS SENCILLAS PERO ALGO LARGA.. CHAO Y BESOS
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar