Underline in menus?

Hello!
How do I make an area with dropdownmenus, ie. like the menu in VB - File Edit View..... etc.

All these menucaptions is placed in a sort of 3D frame, but i cant place a frame up there !

Take a look at this screendump here: http://bobstar.subnet.dk/_76933.html

Hope you can follow me :O)

Regardz
Janus
Janus007Asked:
Who is Participating?
 
amebaConnect With a Mentor Commented:
>With VB menus, you can have that 'Frame' effect
should be:
With VB menus, you CANNOT have that 'Frame' effect
0
 
Ryan ChongCommented:
In the menu caption add the & character

menu1.Caption = "&View",

menu2.Caption = "View && Edit"
0
 
Ryan ChongCommented:
or menu1.Caption = "-"

Or maybe i guess wrong for what you want.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
GeoffKellCommented:
Use the menu editor inside VB. It's a bit of a pain to use but quite easy once you get used to it. Best to read about it in help.

The & character (as stated above) is used to indicate the keyboard shortcut.

Regards
GK
0
 
GeoffKellCommented:
I should have mentioned that you call it up from the VB Tools menu (Menu Editor) or via Control-E.

GK
0
 
amebaCommented:
With VB menus, you can have that 'Frame' effect. You can create 3D line under the menus:
1. by adding Toolbar control (Microsoft Windows Common Controls)

or
2. draw line or use 2 Line controls on your form:

' Form1, create menu, add 2 Line controls
Option Explicit

Private Sub Form_Load()
    With Line1
        .X1 = 0
        .X2 = 20000
        .Y1 = 0
        .Y2 = 0
        .BorderColor = vb3DShadow
    End With
    With Line2
        .X1 = 0
        .X2 = 20000
        .Y1 = 1 * Screen.TwipsPerPixelY
        .Y2 = 1 * Screen.TwipsPerPixelY
        .BorderColor = vb3DHighlight
    End With
End Sub

Note:
Please, do not 'accept my comment as answer' if it is not for A grade.
0
 
amit_panjwaniCommented:
why dont you use coolbar instead ?
coolbar coupled with Toolbar ( buttons with menus give you very much the same effect)

0
 
rspahitzCommented:
After you get the underlined items using the "&" prefix on the letter/number of your choice, you may notice that Win2000 won't display it!

Also, it turns out that Win2000 has decided that if you use the mouse, you don't need the keyboard shortcut, so it won't display it until you press the Alt key.
0
 
nomulapCommented:
Janus,

Have you ever used Menu Editor in VB?
0
 
Janus007Author Commented:
0
 
Janus007Author Commented:
well it seems like i found out by myself :O)

http://www.vbaccelerator.com/ has an excellent ComCtl32 - i will use that!

I thank all of you for your postings!

Kind regards
Janus007


ps: ameba nealy hitted my wish, so therefore......
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.