Visual Basic - COMO PUEDO CAMBIAR EL COLOR DE LINEA DE LISTVIEW?

Life is soft - evento anual de software empresarial
 
Vista:

COMO PUEDO CAMBIAR EL COLOR DE LINEA DE LISTVIEW?

Publicado por Omar Daniel Reyes Britos (10 intervenciones) el 18/02/2006 11:01:45
HOLA COMO ESTAN? MIRE....ESTOY CREANDO UNA BASE DE DATOS PARA UNOS CLIENTES...Y NECECITO SABER COMO CAMBIAR EL FORECOLOR DE UNA O VARIAS LINEAS DEL LISTVIEW SI APARECE UNO DE LOS CLIENTES COMO ELIMINADO...ENTONCES SI EN LA BASE DE DATOS DE ACCESS EL CLIENTE APARECE CON NOMBRE Y APELLIDO...Y EN UNO DE LOS REGISTROS DEL CLIENTE, EL MISMO APARECE EN LA COLUMNA "ESTADO". "ELIMINADO" COMO HAGO PARA QUE ESE CLIENTE, DENTRO DEL LISTVIEW...APAREZCA EN ROJO MIENTRAS QUE LOS DEMAS EN NEGRO PORQUE ESTAN ACTIVOS.? MUCHISIMAS GRACIAS.
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:COMO PUEDO CAMBIAR EL COLOR DE LINEA DE LISTVIE

Publicado por Edgardo (16 intervenciones) el 20/02/2006 16:29:17
Para cambiar la propiedad ForeColor de un ítem del ListView:

ListView1.ListItems(1).ForeColor = vbRed

Obviamente reemplaza el índice (1) por el de los clientes eliminados. Sencillo, no? Espero te sirva.
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:COMO PUEDO CAMBIAR EL COLOR DE LINEA DE LISTVIE

Publicado por perdido (1 intervención) el 08/02/2007 16:29:59
y para un listbox? 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:COMO PUEDO CAMBIAR EL COLOR DE LINEA DE LISTVIE

Publicado por Omar Daniel (10 intervenciones) el 01/05/2013 14:46:10
Muchisimas gracias loco
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