Been having a problem ever since I have been using VB, and I can never fix it - it has gotten to the point of "fix it or forget it", and obviously I don't want to leave some wierd bug in a program.
This doesn't act like a normal bug - it is random, and it occurs only with specific items. Timers, panels, pictureboxes are several of the items that have issues. Anything that goes into the container box at the bottom of the designer is a potential target - buttons, labels, and other controls are somehow unaffected.
This time, it is a timer. And it was there. I ran it. And then... its not there. No trace in the component tray, the form, or in the list of objects on the form in the Properties window. So, no big deal - its a timer, not a button with 50 lines of code. I added a new timer control, named "tmrTyping", and all seemed well.
Except it brought along with it an error - the error I can not, for the life of me, fix:
Error 2 'components' is already declared as 'Private components As System.ComponentModel.IContainer' in this class. C:\Users\Brandon\Documents\Visual Studio 2008\Projects\SnapSuite 2009\SnapSuite 2009\Notes.vb 27 13 SnapSuite 2009
If I comment out or delete the line, the error turns to a warning of:
Warning 1 The variable 'components' is either undeclared or was never assigned. 0 0
And somehow, while writing this post, I now have BOTH of the above.. what the h*ll??
My current "fix" for this is to start a WHOLE NEW project, and bring all the controls over, re-do the settings for everything, copy the code, and sync the events with the code. There has to be a fix. Googling turned up no help whatsoever, so does any DC'er out there know anything about this? I am glad to post the entire solution in a ZIP if needed- I just need a way to fix this annoying error!
Help! SOS!
-Brandon