main menu style

  • Thread starter Thread starter cj
  • Start date Start date
C

cj

How can I make the mainmenu look more like a bar? I think it needs the
line below it or border or something. It just looks like a row of words
at the top of the form--indistinguishable from other form items. But I
don't see anything in the mainmenu properties like a border setting or
anything.
 
cj said:
How can I make the mainmenu look more like a bar? I think it needs the
line below it or border or something. It just looks like a row of words
at the top of the form--indistinguishable from other form items. But I
don't see anything in the mainmenu properties like a border setting or
anything.

Why not use a ToolStrip instead?
 
Hi Cj,

Thanks for your post!

Yes, the .Net MainMenu component encapsulates the Win32 Menus API such as
CreateMenu, InsertMenuItem etc.. APIs to implement the main menu on the
form. So it only supports standard main menu function of a window.

Normally, the bar-look style menus in some commercial applications are not
implemented by the standard menu Win32 APIs, they normally use some
customized ToolBar to achieve the effect. Let's take IE as an example, its
main menu is called menu-bar, which is actually a ToolBar control, please
refer to the article below for more information:
"Creating an Internet Explorer-style Menu Bar"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/pla
tform/commctls/faq/iemenubar.asp

Fortunately, in .Net2.0, Winform has provided ToolStrip and MenuStrip
controls which support much more customized features. You may give these 2
controls a try. I think it should meet your need.

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top