[Visual C++] Listbox selecteditem and textboxes
#5

Finally found something about it, with the SelectedItem function.

private: System::Void listBox1_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
String^ curItem = listBox1->SelectedItem->ToString();
textBox1->Text = curItem;
}



Messages In This Thread
[No subject] - by Koko - 05-20-2013, 08:07 PM
[No subject] - by Phantom - 05-20-2013, 10:20 PM
[No subject] - by Koko - 05-21-2013, 05:37 AM
[No subject] - by soryjero - 05-28-2013, 08:30 AM
[No subject] - by Koko - 05-29-2013, 05:53 PM
[No subject] - by soryjero - 05-29-2013, 05:58 PM
[No subject] - by soryjero - 06-07-2013, 08:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)