NewToProgramming
Technical User
I have created a listbox with the multiselect property set to True. My listbox has 5 items. I want to create logic in my program so that if, for example, the user selects the first item on the list (ListIndex = 0), they are not able to select any other item on the list. If, instead of selecting the first item on the list, they selected the second item (ListIndex = 1) I want to make it so that if they pick the second item they can also select items 4 and 5, but not 1 or 3. And the program would continue on so that depending on what item(s) they click, it would automatically disable other items on the list that are not compatible, only allowing them to select the multiple list items that ARE compatible. Any help would be much appreciated. Thanks.