Ok, this is an error that I have seen ever since VS 2003, right now I am using VS 2010 Ultimate .. anyway, I have a custom component that I need for a project, and that I intend on using in other projects in the future. Anyway, the code inside it is pretty simple, display an image (or multiple of images) based on the value of a property that is set by the calling code.
So the problem comes in when I add the component to my form, everything is cool, but as soon as I add or change anything else about the form, VS generates an error and tells me that it cannot find my component. I then have to change the auto-generated code to Global.MyControl instead of simply MyControl (which is what it is changed to).
This happens with not only custom controls, but also with data imported into the project. Is there something I need to set to resolve this, now that I am having to use VS more, I am having these problems more frequently.
So the problem comes in when I add the component to my form, everything is cool, but as soon as I add or change anything else about the form, VS generates an error and tells me that it cannot find my component. I then have to change the auto-generated code to Global.MyControl instead of simply MyControl (which is what it is changed to).
This happens with not only custom controls, but also with data imported into the project. Is there something I need to set to resolve this, now that I am having to use VS more, I am having these problems more frequently.
Last edited: