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

Popupmenu item click event issue

Thread ID:

Created:

Updated:

Platform:

Replies:

55913 Feb 6,2007 10:17 PM UTC Feb 7,2007 09:16 PM UTC WinForms 3
loading
Tags: Tools
Lan
Asked On February 6, 2007 10:17 PM UTC

Hi,
VS2003, V4.4.0.51.

I want to use popup menu to add a new node on TreeView control and set the node label to edit mode. But it does not work well. If I use same code by clicking a button, it works. Please see my attached sample. Any ideas?
Thanks in advance.

Lan

WindowsApplication250.zip

Gopalakrishnan S [Syncfusion]
Replied On February 6, 2007 11:42 PM UTC

Hi Lan,

Thanks for using Syncfusion products.

You can use the MouseUp event of TreeView for shows the PopupMenu instead of MouseDown event.

Here is the code snippet:

private void treeView1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
if (e.Button==MouseButtons.Right)
{
popupMenu1.Show(treeView1,new Point(e.X,e.Y));
}

}

Please let me know if this works.

Thanks,
S.Gopal.

Administrator [Syncfusion]
Replied On February 7, 2007 09:11 PM UTC

Hi Gopal,
Thanks for help. It works well for me.

Lan

Gopalakrishnan S [Syncfusion]
Replied On February 7, 2007 09:16 PM UTC

Hi Lan,

Thanks for your update.

Regards,
S.Gopal.

CONFIRMATION

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.

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

;