When right-clicking over a data grid or tree list in a dialog displayed in a Word VSTO addin (Office 365 Version 1909 12026.20248) the popup menu automatically closes when I release the mouse button. I have not noticed this behaviour prior to upgrading to 19.1.6 however I can't say definitively that is when the issue arose.
I have another Winforms project using the same version of DevExpress which is not an Office addin and the popup menu works correctly.
I have tried e.Allow = false after showing the menu however that does not make a difference.
Any ideas?
C#private void TvAllTables_PopupMenuShowing(object sender, DevExpress.XtraTreeList.PopupMenuShowingEventArgs e)
{
this.popupMenuTable.ShowPopup(Control.MousePosition);
e.Allow = false;
}
Just applied latest office update 12026.20264 and issue remains
Latest on this - I've found if I double-right click then the menu stays visible. Not much of a workaround but may give you something else to go on.
Hello,
My attempts to reproduce this behavior were unsuccessful. Could you modify the attached project to illustrate your scenario?
Also, make sure that you do not get any exception when the popup menu is used. For this, you can use the approach from the How to obtain the exception's call stack article.
Hi,
I can replicate the issue in your sample app (modified app attached).
Note this happens to ALL popup menus. This was working then they all stopped working. I am confident there aren't any exceptions.
Demonstration of behaviour attached. Note at the end I double right-click and the menu stays.
Please also note I have rolled back to Office 365 semi-annual channel, version 1902 (build 11328.20420) and still have the same behaviour.