|
-
November 23rd, 2011, 10:31 AM
#1
problems with arraylist and messagebox
hello there, i want to show all the elements of an arraylist into a single messagebox.im at a loss about what to do.because messageboxes only take strings as parameters, how can i concatenate an arraylist into a single string?and i DO NOT want multiple messageboxes.i can think of no better than this,where it only shows the last value of the arraylist-----------
Code:
string hehe = "";
for (int i = 0; i < namesList.Count; i++)
{
hehe = "" + namesList[i];
}
MessageBox.Show(hehe);
please help me.thanks in advance
lamiajoyee
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|