QUOTE(Whizzy @ 6 May, 2008 - 04:46 AM)

QUOTE(ahpoohbear @ 6 May, 2008 - 03:34 AM)

[font=Verdana]Hi need help..
i've two list box, original list box and reverse list box. i've added items into the original list box but now i need to put all the items into the reverse list box in a reverse way.
pls assist..

You need to enter your code there Poo... Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.
Please post like this:

Thank you for helping us helping you.
I have no way of knowing what you put in your box, or how you have it formatted. If it's a list of number, or strings... So until we see some code from you, I'm sorry. If you need help getting started, search the forums for "reverse string".
hi whizzy..
horray..i've managed to solve my issue..
here's my code:
CODE
for (int i = lstOriginal.Items.Count - 1; i >=0; i--)
{
lstReverse.Items.Add(lstOriginal.Items[i].ToString());
}
i've two list box, named lstOriginal and lstReverse, side by side. In the add button, it will add all the item, say for eg: apple, orange, in a sorted manner into the lstOriginal list box. So now i have a Reverse button, which i need to switch the reverse, eg: orange, apple, into the lstReverse list box. so that's the code i did in the Reverse button, using a for loop.
so glad that I've managed to solve it...cheers
pooh..