Share via


VS2015 Express:problem with the designer?

Question

Thursday, January 14, 2016 2:46 AM

I'm trying to make a Windows form application in Visual Studio 2015 Express (Visual Basic) with a datagridview not bounded to data. I add some columns and make one off them not visible. Save the solution, OK.

With the designer I change the column property to visible. When I try to save the solution the following error appears:

“An error was encountered during code generation. The changes you have made in the designer have not been committed to the source code. It is recommended that you close and re-open the source file. The error message follows:
Value does not fall within the expected range.”

Using VS2013 I found after some research that the problema was that in the source code the property remains as "Not visible" and I only can save the solution editing manually the code and changing the value to "True" or removing the line.

But if I define the column as "Visible" and then change is value to "Not visible" with the designer, the change appears in the source file. It looks like only the value "Visible" is not save.

I already tried to reapir the instalation of VS2015 but everything remains the same, and this problema does not exist in VS2013.

Is this a bug of VS2015 or something else is wrong?

My computer: ACER E5-571.

OS: Windows 10 Home x64 vs. 1511 - 10586.63 (November update)

Best regards, hoping for a solution.

All replies (4)

Monday, January 18, 2016 1:37 AM ✅Answered

Hi CarlosZagalo,

I'm glad that you have resolve this problem by reinstall Visual Studio. Please mark your reply as answer, which is benefit to other communities who has the same problem.

If any problem in future, please feel free to come back to our forum.

Best Regards,
Weiwei


Friday, January 15, 2016 9:13 AM

Hi CarlosZagalo,

I create a sample project based on your description, I don't have this problem in my side.

According to the error message, it seems that you set a incorrectly value for the column. How do you set the visible property for the column. It should be "True" or "False" through the Edit Columns as below image shows.

If you do with the same steps, please try repair your Visual Studio and the Visual Studio 2015 Update 1 has been released, please install the update 1 to check whether it will fix this issue.

https://www.microsoft.com/en-us/download/details.aspx?id=49989

Best Regards,
Weiwei


Friday, January 15, 2016 6:23 PM

Hi Weiwei Cai

Thank you for answering.

I was making the changes to the columns through the designer, but I coudl'n save the solution. Checking the source I could see that changes made in designer where not reflected in the code, as I said.

I tried to reinstal VS2015 update 1 but everything remains the same.

Finally I remove completely VS2015 and reinstall it.

As usually Nuget package did not install correctly, but the original problem seems to have disappear. Think update of November of Windows 10 have changed something. I use VS2015 for some time now and never had such problem.

I hope the problem has gone forever!

Once again, thank you for answering.


Monday, January 18, 2016 1:49 AM

Hi Weiwei Cai

Yes the problema was solved although I can´t tell what happened.

Once more, thank you for the help.

Best regards.