james clemens
james clemens

Reputation: 51

C# multiple comboboxes

I am writing a program that has two tabs on it. On the first tab the user must enter information about an account(account number, name, address, and phone #). They must also enter investment information(ID,Name,symbol, and shares). Whenever the user clicks on the add customer button, the name of the person goes to a combobox on the second tab. Whenever the user enters information about the investments the name of the investment goes into a listbox on the first tab. The issue I face is that whenever i select an account from the combobox on the second tab, i need an investment combobox to show only the entries for that account and not everysingle one entered while the program has been up. I need to choices from the Investment combobox to be determined by the selection in the customer combobox.

here's the first tabenter image description here

and here's the second enter image description here

Upvotes: 0

Views: 543

Answers (1)

Steve Wellens
Steve Wellens

Reputation: 20640

Hook up a function to the SelectedIndexChanged event of the ComboBox. When it runs, you can fill up the other ComboBox.

Upvotes: 2

Related Questions