array

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • abd el moniem

    array

    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
  • James Steele

    #2
    array

    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.Diagnost ics.Debug.Write Line
    (myTextBoxArray (i).Name)
    Next

    System.Diagnost ics.Debug.Write Line
    (myTextBoxArray .GetType.ToStri ng)
    End With
    [color=blue]
    >-----Original Message-----
    >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
    >.
    >[/color]

    Comment

    • James Steele

      #3
      array

      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.Diagnost ics.Debug.Write Line
      (myTextBoxArray (i).Name)
      Next

      System.Diagnost ics.Debug.Write Line
      (myTextBoxArray .GetType.ToStri ng)
      End With
      [color=blue]
      >-----Original Message-----
      >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
      >.
      >[/color]

      Comment

      Working...