We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

manual popup menu from MouseUp event no longer works...

Thread ID:





43824 May 4,2006 02:58 PM UTC May 10,2006 02:39 PM UTC WinForms 2
Tags: Tools
Administrator [Syncfusion]
Asked On May 4, 2006 02:58 PM UTC

manual popup menu from MouseUp event no longer works... we use the RMouseDownNode property which is set to null before the mouseup event is called making it impossible to see what the user has clicked on anyone any ideas on how to work around this...

Administrator [Syncfusion]
Replied On May 5, 2006 01:22 PM UTC

having looed at the code i see that the order of calls in the sync code has changed in the delegate mouseup was called before the reset of the RSelected but in the new version the delegate is called after the reset of the property Is this a mistake and if so will it be fixed or is this a ''known'' change in behaviour...

Vijayanand S [Syncfusion]
Replied On May 10, 2006 02:39 PM UTC

Hi Peter, Sorry for the delay in responding. I was able to reproduce the issue (RMouseDown property is set to null before the MouseUp event is triggered) and it has been fixed internally. Thanks for your suggestion about this issue. As a workaround, you can use the following code in MouseUp event to get the node which is clicked by mouse rightbutton. if(e.Button==MouseButtons.Right) { Point p=this.treeViewAdv1.PointToClient(Control.MousePosition); TreeNodeAdv node=this.treeViewAdv1.PointToNode(p); this.treeViewAdv1.SelectedNode=node; this.popupMenu1.Show(this,p); } Please take a look at the attached sample and let me know if you have any questions. Regards, Vijay TreeMouseUP.zip


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon