Right-Justify Menu

How can I right-justify a menu in VB 5?
Who is Participating?
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.


Try putting a tab Chr$(9) in front of the text you want to justify.  It works for the top level drop down menu's. (like putting the help menu on the right)
I don't want to lock up you question as I've not tried it.  If it works, let me know and I'll submit it as an answer1

Cheers - MorFF
You should have submitted this as an answer.  It indeed works.  Although there is some space still on the right (which is reserved for the shortcut keys.)

Thanks for your fairness!

Cheers - MorFF
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

polygonAuthor Commented:
My menu is a toplevel, dropdown menu (created with VB built-in menu editor).

I've tried this code but still nothing happens.

Private Sub Form_Load()
   mnuHelp.Caption = Chr$(9) & "Help"
End Sub


sorry, sent you down the wrong path there.  Try this;

   Form1.help.caption = chr$(8) + form1.help.caption

Should work! - MorFF   ;-)
polygonAuthor Commented:
I'm SorRy, but I still can't make it work.
Can you send me a project which has a right-justified menu to billy_man@hotmail.com ?

polygon, If you still need help whould you clue me in as to what you mean by right- justified. I tried the code offered and it worked for me.
VB 5 supports something called bidirectional features that is if you are using a bidirectional Windows with bidirectional languge like arabic or hebrew to write from right to left all you have to do is to enable the RightToLeft prperty (Form1.RightToLeft = True)

now when you use any control over this form it will be supporting right to left, even the menues will be displayed from right to left.
this is how i understood your problem , i hope this will help you.
polygonAuthor Commented:
I don't think English is a bidirectional language.
The only thing I want is my Help menu to go to the right (below the minimize, maximize, close buttons).
I assume you mean, "How can I right-justify a menu ITEM in VB 5?"
You cannot* place the Help menu to the right.
The reason for the responses that told you to put in a Chr$(8), is that this used to work.  That functionality was removed to force VB programmers to do their menues the 'correct' way (correct=Windows; having a menu to the far right is the Macintosh way)
[* Actually you can do this; but, it would be a huge amount of trouble, and I'm not sure you can do it with just VB.  If you have Win32 API experience, and are willing to expend a lot of effort on this let me know.]

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
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
Visual Basic Classic

From novice to tech pro — start learning today.