Visual Basic - BLOQUEAR UN ELEMENTO DE UN LISTBOX

Life is soft - evento anual de software empresarial
 
Vista:

BLOQUEAR UN ELEMENTO DE UN LISTBOX

Publicado por Jorge (7 intervenciones) el 08/03/2006 18:46:50
TENGO UNA PREGUNTA.
QUISIERA SABER SI HAY ALGUNA FORMA DE BLOQUEAR UNICAMENTE UN DATO DE UN LISTBOX, POR EJEMPLO, TENGO 6 DATOS EN MI LISTBOX Y QUISIERA SABER SI SE PUEDE BLOQUEAR EL ELEMENTO DONDE EL LISTINDEX SEA IGUAL A 4, POR PONER UN EJEMPLO.
ESA ES MI DUDA, ESPERO ALGUNA RESPUESTA PORFAVOR, ME URGE, JEJE.
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:BLOQUEAR UN ELEMENTO DE UN LISTBOX

Publicado por jose carlos (340 intervenciones) el 08/03/2006 19:13:16
If List1.ListIndex = 4 Then List1.ListIndex = -1

POR EJEMPLO ¿NO?
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:BLOQUEAR UN ELEMENTO DE UN LISTBOX

Publicado por Jorge (7 intervenciones) el 08/03/2006 22:54:27
YO ME REFERIA A SI EXISTE ALGO ASI:

List1.ListIndex(4).Enabled= False

OBVIAMENTE SI HAGO ESO PUES NO ME LO ACEPTA, ENTONCES MI PREGUNTA ES SI HAY ALGUNA FORMA PARA HACER QUE SOLAMENTE SE PUEDA BLOQUEAR UN ELEMENTO DEL LISTBOX, EN ESTE EJEMPLO EL DE LA POSICIÓN 4, PARA QUE NO SE PUEDA SELECCIONAR. GRACIAS.
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:BLOQUEAR UN ELEMENTO DE UN LISTBOX

Publicado por Trash (3 intervenciones) el 09/03/2006 03:07:14
es mas o menos algo asi?

Private Sub List1_Click()
If List1.ListIndex = 4 Then
List1.ListIndex = False
End If
End Sub
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:BLOQUEAR UN ELEMENTO DE UN LISTBOX

Publicado por Jorge Camacho (7 intervenciones) el 09/03/2006 16:30:13
HAY ALGUNA FORMA PARA QUE ESE INDEX QUE YA ESTA EN FALSO, SE QUEDE SIEMPRE EN FALSO??, ES DECIR, QUE YA NO ME DEJE HACER CLIC EN ÉL POSTERIORMENTE, NO SÉ SI ME HAYA EXPLICADO.
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