how to i get element's one by one from the arraylist.
i need this b/c i want to assign values in textbox, lable ....
Please !! help me out..
first of all dont use words like
b/c??? What do you mean by b/c?? write in simple english.....dont use abbreviation which is hard to understand...
now here is your answer..................
The
Item property of an
ArrayList class gets or sets the element at the specified index. You can retrieve an item from an
ArrayList class at a particular index by using the
Item property.
This is the
default property for collections in VB.NET. This means you can access it without using the Item property name, allowing syntax similar to that of an array.
The following example shows how to retrieve a reference to an object in a collection:
-
Dim objItem As Object
-
objItem = MyArraList(0)
-
or
-
Dim objItem As Object
-
objItem = MyArraList.Item(0)
-
so you can easily write code like
-
-
Label1.text=MyArraList.Item(3)
-
TextBox1.Text=MyArraList.Item(4)
-