I am showing a customized context menu on mouse right buttonup and placed it by adding below code snippet:
MyCustomContextMenu.Placement = PlacementMode.MousePoint
Always t for the first time the context menu is showing at the left top corner of the Desktop, after that it is showing at mouse cursor point. Anyone know what might be the issue with the context menu? Whether I am doing any mistake any where? Do I need to set any property any where? Any idea or help will be appreciated.
Thanks in Advance.
I had the same issue and I do not know why it is, But the below try worked for me.
Try:- At the initialize time you set the
PlacementModeasMousei.e.and later at the time of opening and showing
ContextMenuonRightMouseButtonUpyou change the PlacementMode by
It worked for me, check whether its working for you or not.Good Luck.