array

  • Thread starter Thread starter abd el moniem
  • Start date Start date
A

abd el moniem

i want to make an array of a textbox so please who know
the answer please send the full code for it and if there
is some thing else i have to do

kind regards
abd el moniem
 
If you were looking for an example of creating an array
of type System.Windows.Forms.TextBox[]...

Dim myTextBoxArray() As System.Windows.Forms.TextBox =
{New TextBox(), New TextBox()}
Dim i As Integer

With myTextBoxArray
For i = .GetLowerBound(0) To .GetUpperBound(0)
myTextBoxArray(i).Name = "TextBox" & i + 1
Next
For i = .GetLowerBound(0) To .GetUpperBound(0)
System.Diagnostics.Debug.WriteLine
(myTextBoxArray(i).Name)
Next

System.Diagnostics.Debug.WriteLine
(myTextBoxArray.GetType.ToString)
End With
 
Back
Top