Shirya,
You need to create the event handler for the RadMenuItem. This is done easily through the Properties Window, but I have shown how to accomplish it manually as well. I apologize if my answer is oversimplified, hope it helps.
Properties Window (quick way)
1. While on your form, open the Visual Studio Properties window.
2. Select the RadMenuItem from the combobox.
2. Change to the Events section of the Properties Window. The icon is located at the top of the properties window and looks like a lightning bolt.
3. Double-click the "Click" event and your event code will be generated for you.
4. Enter your logic to execute when the menu item is clicked
Manually create the handler
To create the event handler manually see the code provided below.
| public SampleForm() |
| { |
| InitializeComponent(); |
| this.radMenuItem1.Click += new EventHandler(radMenuItem1_Click); |
| } |
| |
| void radMenuItem1_Click(object sender, EventArgs e) |
| { |
| //Perform your logic here |
| } |
| |
| private void SampleForm_FormClosing(object sender, FormClosingEventArgs e) |
| { |
| this.radMenuItem1.Click -= new EventHandler(radMenuItem1_Click); |
| } |
John