Hi there. I was just wondering if there was a way for me to copy each item in a ListBox to a TextBox.

I am making a Pin Number Generator Application and all the Pin numbers get added into a ListBox.

I want to copy all the data in the ListBox into a TextBox. Prefferibly one pin on a line in the TextBox.

This is so I could save all of the pin numbers into a text file.

The TextBox will be called txtBox and the ListBox is called lstPass.

Thanks to those who can help me. Also i would be greatful if you could comment the code.


Thanks in advanced.
Alistair.