Hola raul, gracias por responder, estoy atrapado con el array de textbox
te pasó mi código.
Public Class Form1
Dim myarray(7, 7) As Control
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim NumericX As Integer
Dim NumericY As Integer
Dim i, j As Integer
Dim formulax As Decimal
Dim formulay As Decimal
NumericX = Contx.Value
NumericY = Conty.Value
formulax = (Matriz1.Width / 2) - ((25 / 2) * NumericX + (NumericX - 1) * (10 / 2))
formulay = (Matriz1.Height / 2) - ((20 / 2) * NumericY + (NumericY - 1) * (10 / 2))
For i = 1 To NumericX Step 1
For j = 1 To NumericY Step 1
myarray(i, j) = New TextBox
Matriz1.Controls.Add(myarray(i, j))
myarray(i, j).Location = New Point((formulax + (i - 1) * 35), (formulay + (j - 1) * 30))
myarray(i, j).Size = New Size(25, 20)
¡myarray(i, j).MaxLength = 5 [color=red]problema[/color]
Next
Next
Button1.Enabled = False
Button2.Enabled = True
End Sub
End Class
hasta ahi estaba bien, porque podía crear la matriz de textbox
pero ahora queriendo hacerlo
con:
dim matriz as textbox
dim matriz as textbox = new textbox() {matriz1,matriz2... matriz89}
ni idea como hacerlo, leo y re leo lo que hay en googl pero no lo entiendo.