Hello all - so I'm having the strangest issue, which is just one in 3 days worth of issues. The particular error I'm encountering when building my project is as follows:
frmShipment.Private WithEvents cboTask as Infragistics.Win.UltraWinGrid.UltraCombo' is not accessible in this context because it is 'Private'.
I am receiving this error for every control (i assume), I currently have 102 errors and VS 2012 states that the maximum number of errors has been reached.
BACKGROUND ON THE ISSUE
My boss and I run the project and use TFS for Source Control. As of last Thursday, we spent a few hours together with me getting all her code from TFS in order to make sure I was in sync with her while she was out of town, in case I needed to publish any updates to our client. Everything worked on Friday, but it is important to mention that I never opened the designer of any form that day. I made code changes and pushed them out to a test environment or the test users to look at. However, once I came in on Monday of this week, I opened the designer, but was no longer able to select any of the controls on my form. In fact, all the controls showed up on screen in their usual places, but then they also showed up at the bottom of the screen along with the normal controls. This has never happened before.
I researched the error to the best of my ability and I also tried doing a clean, build, rebuild of all the projects in my solutions, but after more than a day of these attempt, as well as removing and adding back all infragistic references, I made no progress. Then, on Tuesday after much hair pulling I was able to get it work and I could select the controls on my designer again. I have no clue what I did and I wish I had documented it. I ran across some other errors and was in the process of fixing those yesterday and somehow I got the same issue with my designer again.
And that brings us back to the beginning of my post. Now I can no longer open the designer of any form. I get a bunch of errors and the designer won't display my form.
I would greatly appreciate any advice and help you all can offer.
Thanks!
Hello Scott,
Please make sure the project you are trying to update has its references upgraded after you get the latest version. If your project references are pointing to an earlier version then you will have certain design issues like this. To resolve this issue update all the project references with the correct version. You can do this by running VersionControlUtility or if only few references have to be updated then you can manually update them.
Try the above suggestion and let me know if I may be of further assistance.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
So I ended up trying to get the latest version of the form from Source Control and now all the errors went away and I can build my project again. However, now I can not select ANY controls on ANY of my forms. Please see the image below. Please advise.
Sahaja,
Thank you for your suggestion, but I am certain I already have your product installed on my machine. Please see the attached screenshot. I tried to copy my current project and open that copy, but I got the same errors. I then made a completely new Windows Forms project, added an Ultrabutton to my toolbox and then dragged that UltraButton onto my form. I had no issues doing that at all. I can see the form, the button, and I can select the button and I can build the project with no issues.
What is even more interesting about the whole issue is that I just now opened another form in my project (the project with all the issues) and the designer opened with no trouble. I am even able to select controls on the designer and move them around on the form. I am really confused as to why I can do this with some, but not others. Actually, I started to click on all the errors. Even though the errors span across multiple forms and classes, they are all tied to the one offending form - frmShipment. So clearly, the issue is here. I will try doing a get latest on the form to see what happens.
Ok, I forced a get latest of the frmShipment form as well as the vb file and the resx file. I'm still seeing the same issue. Please see image below.
Please advise. Thank you.
In order to resolve the designer errors that your application is getting I recommend installing our product on your machine. Design time is supported only when our product is installed.
Please let me know if I may be of further assistance.