>>>The user right clicks a control which produces a shortcut menu. The choice then executes procedure code built into the shortcut. The procedure code needs to know a property value of the control that was right clicked. Is there a way to pass this value to the procedure code other than setting it as a public or private variable?
>>>
>>>Thanks
>>
>>The quick answer is yes, though I don't remember how. I do remember in the past I used a nice special class for shortcut menu...
>>
>>Also would thisform.ActiveControl work in your case to find what was clicked?
>
>thisform.activecontrol would give me the value inside of the rightclick event but it would still need to be passed to the shortcut. My past experience is that you can't use thisform inside of a menu.
Yes, you're right, I think we can not use thisform inside a menu. Sorry, I forgot how did I deal with this problem in the past.
If it's not broken, fix it until it is.
My Blog