Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21143

[RESOLVED] Need help coding menu item caption based on user status

$
0
0
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

Viewing all articles
Browse latest Browse all 21143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>