This is a migrated thread and some comments may be shown as answers.

Adding your controls to a context menu?

1 Answer 139 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Scott Gross
Top achievements
Rank 1
Scott Gross asked on 03 May 2007, 03:32 PM
Is there a way to add your controls to a Context menu? My application uses the NotifyIcon Component which links to a Context menustrip.  I would like to be able to add your controls to this.  Or is there a completely different approach?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 04 May 2007, 08:30 AM
Hello Scott,

We will put a RadContextMenu control in our TODO list.

For now you can use ContextMenuStrip instead of ContextMenu.

The following code shows how to add a RadButton to a ContextMenuStrip:
RadButton radButton = new RadButton();  
radButton.Text = "RadButton";  
radButton.ThemeName = "Telerik";  
ToolStripControlHost controlHost = new ToolStripControlHost(radButton);  
controlHost.Size = new Size(100, 25);  
this.contextMenuStrip1.Items.Add(controlHost); 


Sincerely yours,
Jordan
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Scott Gross
Top achievements
Rank 1
Answers by
Jordan
Telerik team
Share this question
or