Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
715
UltraExplorerBar.ActiveItem is null on Right Mouse Click for ContextMenu
posted

Hi,

I am using the ContextMenuUltra property to reference a popup menu. The menu shows up  when I right click on the menu item and the correct toolclick event is fired based on my menu selection but the correct Active UltraExplorerBarItem is not set correctly.  How do I get the right mouse click to set the Activeitem property.

Thanks

RIch 

 

 

  • 69832
    Offline posted

    Handle MouseDown and use the ItemFromPoint method to get a reference to the item at the cursor position, if any. Note that this method will return null when there is no item, so be sure to check for null before accessing the object.