I have compared the Mainform.designer.vb with other projects, looking at the EthernetIPforCLX drivers and cannot find anything different, other than the name I gave my driver, in this case "EthernetIPforCLXCom_MainForm". The code will run fine.
I have not had any more instances of losing my "EthernetIPforCLXCom_MainForm" control. However I am experiencing Visual studio 2013 crashes, enough times that I have found a series of events that can cause it to stop working(crash). Usually when it stops working, Visual studio will automatically restart.
I have 10 forms in my application, two of which are using a EthernetIPforCLX control. It is only with these two forms that I can cause a crash.
On those two particular forms, if I double click on on object on the form, as usual, it will open up a sub click event in the vb code. On other forms, I do this and decide not to use the sub click event, I would delete the sub from the vb code. but if I do that with these two forms, when I go back to the form[design]. the window goes blank. I then close the form and when I re-open, visual studio will stop working and restart. I can then re open the solution and then re-open the form. At that point is when a new "EthernetIPforCLX1" shows up. When I delete it, I get two error messages.
"An error occurred while processing this command. Object reference not set to an instance of an object"
followed by another pop up error "Object reference not set to an instance of an object"
After this application will run again.
What would cause it to create the new "EthernetIPforCLX1"?
If I am shooting myself in the foot somewhere, please tell me.
Thanks!