Adding links to ContextMenuStrip

  • Thread starter Thread starter Luigi
  • Start date Start date
L

Luigi

Hi all,
I have a TreeList (DevExpress) where I'd like to create a context menu.
I've addedd a ContextMenuStrip to my WinForms with this method:

private void contextMenuStrip1_Opening(object sender, CancelEventArgs e)
{
int a = 0;
}

How can I add only an option (a Delete functionality for example) in this
contextMenu?

Thanks in advance.
 
Hi all,
I have a TreeList (DevExpress) where I'd like to create a context menu.
I've addedd a ContextMenuStrip to my WinForms with this method:

private void contextMenuStrip1_Opening(object sender, CancelEventArgs e)
        {
            int a = 0;
        }

How can I add only an option (a Delete functionality for example) in this
contextMenu?

Thanks in advance.

If you're meaning of adding menu items into your contextmenustrip at
runtime, check this out:
You can simply use "Add" method:
http://msdn.microsoft.com/en-us/library/ms229626.aspx

HTH,

Onur Güzel
 
Back
Top