Shortcut keys not aligned in Menu in Winform

Hi experts
I understand that it is not a new question. But I am having trouble in aligning the shortcut keys in menu items. Please see the attached screenshot.

I'd tried appending the menu item text by "\tCtrl+W" but "\t" ends up showing as part of the menu item text. Or had I put it at the wrong place.

I am using VS2008.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
Different software will align the shortcuts in different ways.

Visual Studio does align them on the left side, but most software, including Office, align then on the Right side.

This is what happens with the MenuStrip control provided with Visual Studio. You will have to live with it, because Microsoft did not provide a way to define the alignment of the Shortcuts.

The only way you could align them would be to change the font to a fixed font such as Consolas, where all the characters have the same width. But you will probably not like the "older" look of such fonts. With proportionate fonts, such as the Segoe that is used by default, each character has a different width, which is the reason why you cannot align your shortcuts. Ctrl-U takes more width than Ctrl-I. So no matter what, the menus would be misaligned one side or another.

The matter is made worse in you case, because in the same menu, you use both the widest character (W) and the thinnest one (I). You might want to change the letter used for the shortcuts to make the difference in width less apparent.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dominicwongAuthor Commented:
Thanks James Burger.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.