disable menu

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • win

    disable menu

    I've already disabled of the menu but when I press <ALT>, it still can be
    focusd.
    How can i disable this?
    Thanks

  • Linda Liu[MSFT]

    #2
    RE: disable menu

    Hi Win,

    How about the problem now?

    If you have any question, please feel free to let me know.

    Thank you for using our MSDN Managed Newsgroup Support Service!

    Sincerely,
    Linda Liu
    Microsoft Online Community Support

    Comment

    • win

      #3
      Re: disable menu

      The problem still exist.
      I have a MDI child window and it owns a menu.
      I want to focus on the child's menu when I press <ALT>.
      However the cursor focus to the parent's menu even when it has been
      disabled.

      "Linda Liu[MSFT]" <v-lliu@online.mic rosoft.com¦b¶l¥ ó
      news:1Qc8y3FeIH A.5204@TK2MSFTN GHUB02.phx.gbl ¤¤¼¶¼g...
      Hi Win,
      >
      How about the problem now?
      >
      If you have any question, please feel free to let me know.
      >
      Thank you for using our MSDN Managed Newsgroup Support Service!
      >
      Sincerely,
      Linda Liu
      Microsoft Online Community Support
      >

      Comment

      • Linda Liu[MSFT]

        #4
        Re: disable menu

        Hi Win,

        Thank you for your feedback!

        I performed the following test:

        1. Create a WinForm application project and it already contains a Form1 in
        it.
        2. Add a Form2 into this project.
        3. Add two MenuStrips with some ToolStripMenuIt ems into Form1 and Form2
        respectively.
        4. Set the IsContainer property of the Form1 to true.
        5. In the Form1's Load event handler, add the following code:

        private void Form1_Load(obje ct sender, EventArgs e)
        {
        Form2 frm = new Form2();
        frm.MdiParent = this;
        frm.Show();
        }

        Note that I don't disable either of the MenuStrips on the Form1 and Form2.

        Build the project and run the application. When I press the "Alt" key,
        neither of the MenuStrips on the Form1 and Form2 is focused.

        Sincerely,
        Linda Liu
        Microsoft Online Community Support

        Comment

        • Linda Liu[MSFT]

          #5
          Re: disable menu

          Hi Win,

          How about the problem now?

          If the problem is still not solved, please feel free to let me know.

          Thank you for using our MSDN Managed Newsgroup Support Service!

          Sincerely,
          Linda Liu
          Microsoft Online Community Support

          Comment

          Working...