Ver Mensaje Individual
  #32 (permalink)  
Antiguo 10/04/2012, 13:43
Avatar de Aquaventus
Aquaventus
 
Fecha de Ingreso: junio-2010
Ubicación: Lima-Peru , En el alba de la naturaleza
Mensajes: 2.105
Antigüedad: 13 años, 10 meses
Puntos: 267
Respuesta: Botones Dinamicos

Código vb:
Ver original
  1. Dim tabla As OdbcDataReader
  2. Dim conex As New Conexion
  3. i = 1
  4. tabla = conex.consultar("select logro *from logros")
  5.  
  6. While tabla.Read
  7.       ReDim BotonEquipo1(totalPartidos, i)
  8.       BotonEquipo1(totalPartidos, i) = New Button
  9.       BotonEquipo1(totalPartidos, i).Text = tabla.GetValue(0)
  10.       BotonEquipo1(totalPartidos, i).Size = New Size(33, 20)
  11.       BotonEquipo1(totalPartidos, i).Location = New Point(x, 20)
  12.       Partidos(totalPartidos).Controls.Add(BotonEquipo1(totalPartidos, i))
  13.  
  14.       ReDim BotonEquipo2(totalPartidos, i)
  15.       BotonEquipo2(totalPartidos, i) = New Button
  16.       BotonEquipo2(totalPartidos, i).Text = tabla.GetValue(0)
  17.       BotonEquipo2(totalPartidos, i).Size = New Size(33, 20)
  18.       BotonEquipo2(totalPartidos, i).Location = New Point(x, 55)
  19.       Partidos(totalPartidos).Controls.Add(BotonEquipo2(totalPartidos, i))
  20.  
  21.  x = x + separacion
  22.  
  23. i = i + 1
  24. End While
__________________
Internet es tener todo el conocimiento global a tu disposición.
Desarrollo de Software - Ejemplos .Net