hi i want to populate a textbox when i select an item from a combobox. the data is read from a textfile, the combobox is populated on load but when i select an item in the combobox i want a textbox to be loaded with the corresponding data. can anyone point me in the right direction please.
here is my code sofar:
1 2 3 4 5
private: System::Void cmbBoxStudNo_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e)
{
int Index = cmbBoxStudNo->SelectedIndex;
txtName->Text= (gcnew String(A[Index].GetName()));
}