01-13-2009 06:07 AM
I have a listbox. I want to display right-click menu. Right-click menu has to show certain options based on whether the item is check marked or not. Problem is how can I find out whether the right clicked row/cell is check marked or not. Do I have to set selection to that cell/row first (if yes how)? or it can be done without the row/cell being selected (being highlighted as when it is left clicked). If it is possible to leave the highlight on the row which had been left clicked while I can find out the item symbol of the cell/row which had been right-clicked, that would be even better.
Your help would be appreciated!
Have a very pleasant day!
Solved! Go to Solution.
01-13-2009 06:46 AM - edited 01-13-2009 06:48 AM
Here is some code to see if the row is checked (symbol nr. 1):
And here one to behave like as a left mouse button:
And yes you can use the first code to detect the checked status without changing the value of the listbox.
Ton
01-13-2009 10:16 AM
Thanks Ton! That was great help. Solved the problem. Couldn't figure out point to row function usage. That was what I needed.
Thanks again!
Pleasant day to you!