.NET inherited (WinForms) Form - VS designer issue

后端 未结 5 706
后悔当初
后悔当初 2020-12-11 02:45

I have several forms in a C# application. I use Visual Studio 2010 Beta, but .NET 3.5 and C# 3.

I have a base form, called FilteredQueryViewForm in the Shd namespace

5条回答
  •  清歌不尽
    2020-12-11 03:13

    I had a similar issue with a different exception related to code in my base form's _Load method, so none of the solutions helped me. There was an exception in design-time that doesn't happen in run-time (null value referring to a static instance of another class). My solution was to throw a try-catch block around all of the code in that method.

提交回复
热议问题