Excel toolbar started failing (error CA2214) RRS feed

  • General discussion

  • Hi,

    I started developing a toolbar, added two buttons and everything was going perfectly. I added a third button and suddenly the toolbar was coming up blank. The error seems to relate to (in Partial Class Ribbon1:





    'This call is required by the Component Designer.



    This chunk of code was added automatically - I'm not a software developer by training but it looks pretty straightforward so it's unclear to me what aspect of this is the offender. I have Googled this quite a lot and can't find anything beyond the generic feedback of "do not call a type's virtual methods from within the type's constructors."

    I haven't touched anything inside InitializeComponent - have only made changes visually on the designer...

    Any thoughts?

    I have attached an image showing the design in VS (with the green icons) and what is actually coming up in Excel.

    Tuesday, May 16, 2017 2:19 PM