Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/10/2007, 08:50
crassr3cords
 
Fecha de Ingreso: marzo-2007
Mensajes: 103
Antigüedad: 18 años
Puntos: 1
Re: Control eventos para checkbox generados en tiempo ejecución

yo tengo este codigo que hacia lo mismo pero con textbox, es en VB ..aca se le da un nombre diferente a cada checkbox.


For i As Integer = 0 To (vecPalabras(numeroPalabra).Length - 1)
Dim x As New Label
x.Location = New Point(px, 20)
x.Size = New Size(40, 50)
x.BorderStyle = BorderStyle.Fixed3D
x.Name = "label" & i
x.Font = New System.Drawing.Font("Microsoft Sans Serif", 30.0!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Italic), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
x.TextAlign = ContentAlignment.BottomCenter
x.BringToFront()
If vecPalabras(numeroPalabra).Substring(i, 1) <> " " Then
x.Text = "_"
x.BackColor = Color.White
Else
x.Text = " "
x.BackColor = Color.Black
End If
Controls.Add(x)
px += 40
Next


la otra parte de tu pregunta, en realidad no la entiendo bien.
__________________
Julio César Guzmán Góngora
Microsoft Certified Professional
[email protected]
[email protected]