Ver Mensaje Individual
  #13 (permalink)  
Antiguo 21/01/2008, 02:27
Avatar de Jose_minglein2
Jose_minglein2
 
Fecha de Ingreso: noviembre-2004
Mensajes: 2.344
Antigüedad: 20 años, 4 meses
Puntos: 8
Re: evitar el barrido cuando se crea botones dinamicos

Tal como dices, dentro de un for y para cada elemento que quieras crear (ya sea boton, textbox ...), tal como asi:
Código:
while (i<count)

dim mybutton as New System.Windows.Forms.Button
       
        mybutton .Name = "Cat_Label_" & i.tostring
        mybutton .Size = New Size(150, 57)
       mybutton.location = new point(10, i+100)
panel1.controls.add(mybutton)
i+=1
endwhile