Saif Shaikh
Saif Shaikh

Reputation: 61

Inverse / Opposite navigation in c# menustrip with direction keys

I am bulding a C# Windows Forms Application which has a Menu Strip with each menu having a few menu items (just like in notepad).

The Problem: When a menu is selected, I can navigate properly with the direction keys(left/right) on the keyboard but when a menu is Dropdown Opened, the direction keys(left/right) on the keyboard navigate to the menu in the opposite direction. Left direction key takes me to the right menu and right direction key takes me to the left menu.

Please help me. I've searched a lot on the internet but no luck yet!

Upvotes: 0

Views: 550

Answers (2)

Philippe
Philippe

Reputation: 31137

For others to not loose their time searching, the right answer is here: https://stackoverflow.com/a/16306598/717372

Upvotes: 0

Codendaal
Codendaal

Reputation: 534

This seems to happen when you are using "combo box" instead of "Menu item". When you use "Menu item" control the direction keys seems to work the way you want them to.

Upvotes: 0

Related Questions