Ver Mensaje Individual
  #7 (permalink)  
Antiguo 09/09/2008, 09:13
Avatar de moradazo
moradazo
 
Fecha de Ingreso: julio-2008
Ubicación: [email protected]
Mensajes: 355
Antigüedad: 15 años, 10 meses
Puntos: 2
Respuesta: Visual Basic 2005: Grupo de botones

Listo lo resolví, solamente ocupaba tener una condición IF para determinar que grupo de botones va en cada tab, ademas si debo agregar otro txtpoint

Código PHP:
For As Integer 0 To (cont 1)
            
'For que recorre la cantidad de botones en el archivo de texto'
            
Dim Boton As New Button 'Declaracion de boton'
            
Boton.Name = (TextBox1.Lines(i) & (i)) + i.ToString() 'Nombre del boton'
            
Boton.Text TextBox1.Lines(i'Texto en el boton'
            
Boton.Height 22 'Tamaño alto de cada boton'
            
Boton.Width 137 'Tamaño largo de cada boton'
            
Boton.Location = New Point(TxtPoint.XTxtPoint.Y'Localizacion en el Form del boton'
            
TxtPoint.+= Boton.Height 5
            AddHandler Boton
.ClickAddressOf xClick
            
If Boton.Text.StartsWith("800"Then
                TAB800
.Controls.Add(Boton)
            Else
                
Dim gBoton As New Button
                gBoton
.Name = (TextBox1.Lines(i) & (i)) + i.ToString()
                
gBoton.Text TextBox1.Lines(i)
                
gBoton.Height 22
                gBoton
.Width 137
                gBoton
.Location = New Point(TxtPoint2.XTxtPoint2.Y)
                
TxtPoint2.+= gBoton.Height 5
                AddHandler gBoton
.ClickAddressOf xClick
                TABgeneral
.Controls.Add(gBoton)
            
End If

        
Next i 
Aqui tienen para cualquiera que le sirva!