Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Buttonmenus and missing references

Status
Not open for further replies.

SirDrinksalot

Programmer
Feb 27, 2002
5
GB
Hi all,

I'm trying to add a buttonmenu to a toolbar, but when i add the following code to deal with the click event:

Private Sub tblToolBar_ButtonMenuClick(ByVal ButtonMenu As ComctlLib.ButtonMenu)

End Sub

and try to run the program i get the error user-defined type not defined. I have the component installed (mscomctl.ocx) but do i need a reference as well?

TIA

Dan
 
Sorry guys, it's ok, i figured it out. For some reason manually typing it (which i did) caused the error, and all i had to do was select it from the event list for the toolbar.

Case closed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top