Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I am in the process of migrating a rather large winforms solution from Visual Studio 2008 to Visual Studio 2012. Although the solution builds cleanly, a large number of the forms don't open in design mode. These same forms were opening in design mode in VS2008 without any issue.

I have worked around this by modifying the constructors for these forms to check if the process is in design mode, and if it is to do nothing other than call initializecomponent.

This is proving to be a workable solution, but I am wondering if other people have encountered this situation or if anyone knows why design mode in Visual Studio 2012 seems to be more fussy than VS2008.
Posted
Comments
Karthik Harve 18-Apr-13 4:55am    
if you would have used any third party controls, try by replacing the dll once again in VS 2012.
David J Parsons 18-Apr-13 5:59am    
Hi Karthik, yes, I think that's a good point. We make use of a lot of third party controls, especially Infragistics. Thanks for your suggestion.
Karthik Harve 18-Apr-13 6:45am    
welcome. !!
Mike Meinz 18-Apr-13 9:02am    
I have heard of an issue like this before but I don't remember the two VS versions involved. It was caused by a control name that was the same name as a "reserved word" or Microsoft property name used in Forms Designer-generated code. The one that I remember had a TextBox in the form with the name of Name. This conflicted with the form's Me.Name property.
David J Parsons 18-Apr-13 9:54am    
Good idea. I'll take a look. Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900