Reputation: 494
I have an array list called str, i want to see how many elements there are inside that array list, how should I go about using a messagebox to display that?
Upvotes: 0
Views: 1892
Reputation: 6637
Try
ArrayList arr = new ArrayList();
......
MessageBox.Show(arr.Count.ToString());
Upvotes: 0
Reputation: 11397
you can just do for getting the length and display it .
MessageBox.Show(str.Count.ToString());
Upvotes: 4