I have a listbox of user names. When I click on any name in the Listbox a PopUp Menu appears with a list of Options. What the caption(s) of the options say depends on that user's current status.
For example let's say there are two names in the Listbox, John and William. When I click on either John or William for the first time I need the menu item to read "Select This Person". Once I release the mouse then in the code I need to put this person's name in the "SelectedList". Now let's say later I come back and click on that same person's name again. This time I need the menu item to read "Unselect This Person" and then if I click on the other persons name the menu item should read "Select This Person". So, in other words it's simply a toggle from one status to the other each time a name is clicked on.
EDIT: Never mind I figured it out
For example let's say there are two names in the Listbox, John and William. When I click on either John or William for the first time I need the menu item to read "Select This Person". Once I release the mouse then in the code I need to put this person's name in the "SelectedList". Now let's say later I come back and click on that same person's name again. This time I need the menu item to read "Unselect This Person" and then if I click on the other persons name the menu item should read "Select This Person". So, in other words it's simply a toggle from one status to the other each time a name is clicked on.
EDIT: Never mind I figured it out