A menu bar is a region where computer menus are housed. Its purpose is to house window- or application-specific menus which provide access to such functions as opening files, interacting with an application, or help. You add IMenuItem objects to the menu bar to construct a menu.
Public Sub Form_Load() Dim tmpGroupFile As VBMenuGroup = Me.MenuBar.createMenuGroup(Null, "File", "File") Call Me.MenuBar.createMenu(tmpGroupFile, "New", "New") Call Me.MenuBar.createMenu(tmpGroupFile, "Open", "Open") End Sub Public Sub Form_MenuClick(MenuItem As VB#IMenuItem) MsgBox "Caption: " & MenuItem.Caption & " - ControlID: " & MenuItem.ControlID End Sub
Differences to VB6
With VB6, the menubar is viewable at design time. With Jabaco, it is not viewable at design time
The easiest way, to create a menu, is to use a menu-creator. More information about it and a download-link you can find at [http://www.jabaco.org/board/581-menubar-creator.html] With the menu-creator, you can also creating more things, then here in the documentation is shown.