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

Problem in menu

1 Answer 61 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Ramaiah Palaniappan
Top achievements
Rank 1
Ramaiah Palaniappan asked on 13 Nov 2008, 02:28 PM
Dear sir,
            I have a problem in RadMenu . After Main form loaded click the menu using mouse and press esc . Now open shild form and now click Alt key the menu child items are shown . Is there a way to not shown the childitems when child form is open . For your reference i have explain the steps
NOTE : i am using c#

Step 1: Creat a new window application with two forms form1 and form2
Step 2: in Form1 add one menu with subitems and add radbutton and on the click event call the form2 ( form2object.Showdialog();)
Step 3: Run the application and Click the menuitem1 using mouse and press esc
Step 4: Now click the radbutton1 ( Form2 is open)
Step 5: Now click the Alt key (twice) the childitems are shown - How to avoid this

thanks & regards
Dhakshin

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 17 Nov 2008, 04:06 PM
Hi Ramaiah,

Thank you for this question.

RadMenu uses a message filter to catch the Alt key. You can avoid the Alt key processing by disabling this message filter. Consider the code snippet below:

Application.RemoveMessageFilter(this.radMenu1); 
Form2 f2 = new Form2(); 
f2.ShowDialog(); 
Application.AddMessageFilter(this.radMenu1); 
 

I hope this helps. Do not hesitate to contact us if you have other questions.

Regards,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
Ramaiah Palaniappan
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or