Do you know how to make the selected text of a listbox the text inside a textbox?

I tried this but its not working:

Code:
string[] details = { listBox4.SelectedItem.ToString() };
 textBox5.Text = details[0];