We help IT Professionals succeed at work.

Adding to the default menu

vmaxx
vmaxx asked
on
Medium Priority
150 Views
Last Modified: 2006-11-17
I would like to add a menu item to the default menu in the upper left corner {Restore, move, size, minimize, maximize, & close menu} in a VB6 app. Any idea how?
Comment
Watch Question

Richie_SimonettiIT Operations
CERTIFIED EXPERT

Commented:
IT Operations
CERTIFIED EXPERT
Commented:

Author

Commented:
That did the trick!

cheers
Richie_SimonettiIT Operations
CERTIFIED EXPERT

Commented:
I'm glad!
Thanks for the grade.

Author

Commented:
I might have spoke too soon, there is a problem with the code from vb helper. It workd fine when running in the VB application, but when you try to make the executable or setup package it errors out with a compile error: User-defined type not defined. It comes that way from their website. In the file custmenu it has a function:

Public Function GetMainMenuStructure(frm As Form) As Integer 'MenuItem
Dim main_handle As Long
Dim submenu As MenuItem

but nowhere it defines MenuItem, and that is what is giving me the compile error. I am not sure if it is because I am using Win2k or there is something I am supposed to add. Any ideas?

Explore More ContentExplore courses, solutions, and other research materials related to this topic.