|
-
Sep 20th, 2012, 05:53 AM
#1
Thread Starter
New Member
Array used in listboxes?
Hey, I have an array with 5 rows 3 columns, and it goes like A B C D E, 1 2 3.
I need to add the A B C D E into one list box and the 1 2 3 into another.
I have programmed this but it only shows 0 0 0 1 1 1 2 2 2 3 3 3 4 4 4
(Did not include non important parts)
for (int row = 0; row <= stringArray.GetUpperBound(0); row++)
{
for (int seat = 0; seat <= stringArray.GetUpperBound(1); seat++)
{
if (string.IsNullOrEmpty(stringArray[row, seat]))
{
Seat theSeat = new Seat();
theSeat.text = row.ToString();
theSeat.row = row;
theSeat.seat = seat;
if (flag)
{
int itemIndex = listBoxLetters.Items.Add(theSeat);
}
Help would be appreciated! thanks.
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
|