PC Review


Reply
Thread Tools Rate Thread

Adding links to ContextMenuStrip

 
 
Luigi
Guest
Posts: n/a
 
      10th Oct 2008
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.
--
Luigi
http://blogs.dotnethell.it/ciupaz/
 
Reply With Quote
 
 
 
 
kimiraikkonen
Guest
Posts: n/a
 
      19th Oct 2008
On Oct 10, 12:44*pm, Luigi <ciupazNoSpamGra...@inwind.it> wrote:
> 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.
> --
> Luigihttp://blogs.dotnethell.it/ciupaz/


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

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ContextMenuStrip with a ContextMenuStrip Child =?Utf-8?B?QnJhZA==?= Microsoft VB .NET 1 17th May 2007 07:42 PM
Adding Links to the Links field in IE7 =?Utf-8?B?UGV0ZVByeWxz?= Windows Vista Security 1 22nd Apr 2007 06:47 AM
How can I keep a contextmenustrip from adding Icons in task bar? =?Utf-8?B?TWFyaW8gTW9udGVz?= Microsoft Dot NET Framework Forms 0 17th Aug 2006 08:35 PM
Adding icons as links Diego F. Microsoft Dot NET Compact Framework 3 16th Jun 2004 08:59 AM
Adding Links to Outlook XP SteveJ Microsoft Outlook 1 17th Dec 2003 03:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:43 AM.