EDIT: I was missing a simple command. See answer below.
I'm developing a front end .NET application that will replace the current one that my organization currently uses, on a temporary basis, that is intended to be simple to use for the newer employees. This is in regards to a ticketing system.
However, there is one function this application needs to perform, which is to 'classify' a problem that is reported.
I have 3 collections:
Service, Category, and Subcategory.
I currently have my program set up to add in available options for category and subcategory based on the values entered in previously.
if Convert.ToString(cboxservice.selecteditem) = 15k Then
cboxCategory.Items.Add("15k Request")
End If
And the like. Cboxservice is a combobox. When someone selects 15k for Service, 15k Request should show up under Category.
However, if I were to go to another service, and have other objects added to the Category
field, categories from both objects would be present.
I need to remove all items in the collection before adding different items to the collection.
Answer from NDJ, posted as comment.