none
oemplus shortcut doesn't fire

    Question

  • I am trying to fire menu shortcut by + button , so I set its shortcut to oemplus

    but click the + button doesn't work, am I miss any thing

    what's the equivalent to oemplus in the keyboard, and what's the equivalent to + in the toolstripmenueItem

     

    Best regards

    Thursday, October 13, 2011 9:26 AM

Answers

  • @JohnWein: Thank you for your response.

     

    Hi aabdellatif,

     

    Please refer to the following solution:

     

            private void testPlusToolStripMenuItem_Click(object sender, EventArgs e)
           {
                MessageBox.Show("This is a test!");
            } 
            private void Form1_Load(object sender, EventArgs e)
            {
                testPlusToolStripMenuItem.ShortcutKeys = Keys.Control|Keys.Oemplus;
            }
    

    When we press Control+ Oemplus key combination, it will show the expected MessageBox.

     

    Have a nice day!
    Yoyo. 


    Yoyo Jiang[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Monday, October 17, 2011 6:54 AM

All replies

  • Hi aabdellatif,
    Welcome to the MSDN forum!

    Could you please tell us more details about the situation?

    1.       What is oemplus? Is it a C# application or something else?

    2.       How did you write the code to set the shortcuts to oemplus? In which event?

     

    We are looking forward to your response.

    Have a nice day!
    Yoyo.


    Yoyo Jiang[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.



    Saturday, October 15, 2011 4:57 PM
  • OemPlus is the "=" key.
    Saturday, October 15, 2011 6:00 PM
  • @JohnWein: Thank you for your response.

     

    Hi aabdellatif,

     

    Please refer to the following solution:

     

            private void testPlusToolStripMenuItem_Click(object sender, EventArgs e)
           {
                MessageBox.Show("This is a test!");
            } 
            private void Form1_Load(object sender, EventArgs e)
            {
                testPlusToolStripMenuItem.ShortcutKeys = Keys.Control|Keys.Oemplus;
            }
    

    When we press Control+ Oemplus key combination, it will show the expected MessageBox.

     

    Have a nice day!
    Yoyo. 


    Yoyo Jiang[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Monday, October 17, 2011 6:54 AM

  • <snip>

    When we press Control+ Oemplus key combination, it will show the expected MessageBox.

     

    After adding the event of course to this method (either by the properties or by the doing that by hand init or load method)

    :-)


    Success
    Cor
    Monday, October 17, 2011 7:01 AM