I have two forms, one to add a password name, and password. The other to view password names through a list box, and a textbox to show the code. The idea is when i add text in the form that adds a new item, it puts it into the list box on the other form. (Which i have done like

VB Code:
  1. frmPasswordStorer!lstMain.AddItem txtPasswordName.Text

The question in hand though is, when i click the listbox, it shows the correct code in my textbox. How can that be done?

If this is slightly confusing i will try and explain slightly more clear.

THANKS