Friday, August 29, 2008

Add In for VB6.0 (Change Menu Caption)

I really hope I never need to remember this ever again, but, I was fixing up a little AddIn for VB6.0 that we still use here!

The Add In kept showing a caption of My AddIn. Really annoying.

You can change most other attributes of the add in, in the designer for the Connect class. But changing the menu caption involves changing the code behind it.

Right click on the "connect" class in your Solution Explorer and go to "View Code".

Search for "My AddIn". You'll find it in the AddinInstance_OnConnection event handler. Change the text in the AddToAddInCommandBar call, to be whatever you would like to appear on the menu.

Thanks to http://www.twohootssoftware.co.uk/tips/vbaddintips.html for steering me here - actually providing the solution.