Results 1 to 8 of 8

Thread: textbox array

  1. #1

    Thread Starter
    Lively Member sameer spitfire's Avatar
    Join Date
    Nov 2001
    Location
    India
    Posts
    120

    textbox array

    hi friends

    How to use a textbox array ?

    I have taken a textbox array on the form and textbox

    now how do i related the same link the same ie textbox and textbox array

    how can i set a index of textbox array on textbox


    Please help
    with Regards
    sameer Mulgaonkar

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I don't understand what you mean really but if you mean something about array of controls , it's not present in .NET (if you mean the one like in VB6) . Something used to be in VB6 , like this :
    TextBox(0).text=
    TextBox(1).text=

  3. #3

    Thread Starter
    Lively Member sameer spitfire's Avatar
    Join Date
    Nov 2001
    Location
    India
    Posts
    120
    me.textboxarray.setindex(textbox1,1)
    me.textboxarray.setindex(textbox2,2)

    this is the code to be written in the code window but can we do this on form design mode
    with Regards
    sameer Mulgaonkar

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    There is no such property in the Textbox control named 'setindex' . What are you wanting to do exactly ?

  5. #5

    Thread Starter
    Lively Member sameer spitfire's Avatar
    Join Date
    Nov 2001
    Location
    India
    Posts
    120
    My question is how to use a textbox array in VB .net ?
    with Regards
    sameer Mulgaonkar

  6. #6
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by sameer spitfire
    My question is how to use a textbox array in VB .net ?
    Buy a VB.NET book
    VB Code:
    1. Dim txtBox() As New System.Windows.Forms.TextBox
    It's something like that to declare it, you should be able to figure out how to use it. If you can't, I'd suggest buying a book.

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by sameer spitfire
    My question is how to use a textbox array in VB .net ?
    You post but you don't read responses . I answered the question and provided two prossiblities for your question .

  8. #8
    New Member
    Join Date
    Jan 2004
    Posts
    2

    Arrays of Controls

    If you'd like to see a working example of control arrays, the code can be found in Visual Basic .NET Primer Plus, by Jack Purdum, Howard Sams Publishing, pp. 301-306.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width