I've recreated my add-in multiple times - - and at some point along the way,
I get an error in the connect.vb file at this line:
Dim toolsControl As CommandBarControl =
menuBarCommandBar.Controls.Item(toolsMenuName)
The error is :
Error 2 'Controls' is not a member of MyAddin.CommandBar'. C:\My
Apps\MyAddin\MyAddin\Connect.vb 55 49 MyAddin
It happens when I rebuild after adding something as innocent as a new
resource/image or changing a line of code to one place or another (not in
the connect.vb file itself).
It could happen at any time. Usually, I can just recreate the project, step
by step and add in my form and it works - but, I can't get it to go away at
all.
I've searched on Google but can't find anything
Can anyone help with this problem?