Problem in menu

2 posts, 0 answers
  1. Ramaiah Palaniappan
    Ramaiah Palaniappan avatar
    3 posts
    Member since:
    Jul 2008

    Posted 13 Nov 2008 Link to this post

    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
  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 17 Nov 2008 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top