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
Printable View
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
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=
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
There is no such property in the Textbox control named 'setindex' . What are you wanting to do exactly ?
My question is how to use a textbox array in VB .net ?
Buy a VB.NET bookQuote:
Originally posted by sameer spitfire
My question is how to use a textbox array in VB .net ?
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.VB Code:
Dim txtBox() As New System.Windows.Forms.TextBox
You post but you don't read responses . I answered the question and provided two prossiblities for your question .Quote:
Originally posted by sameer spitfire
My question is how to use a textbox array in VB .net ?
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.