Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/04/2008, 08:54
Avatar de Peterpay
Peterpay
Colaborador
 
Fecha de Ingreso: septiembre-2007
Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 16 años, 8 meses
Puntos: 87
Re: colores dinámicos

Colores al azar,bueno funcion tal cual no existe, debes hacer un random y de cierto modo generar tu color, podrias utilizar 3 objetos random para definir un color rgb

Random x = new Random();
int r=x.Next(0, 255);

Random y = new Random();
int g=y.Next(0, 255);

Random z = new Random();
int b=z.Next(0, 255);

y despues crear un color en base a tu codigo rgb

el asignarselo a tu celda es con el style de la celda (ojo style en windows forms y css style en web).
__________________
Curso WF4
http://cursos.gurudotnet.com/ DF
Aprende HTML5