Visual Studio Design View - form is blank

后端 未结 6 1071
别跟我提以往
别跟我提以往 2021-02-04 14:38

I have a C# project with two forms. All compiles well. When I run the project, all forms are drawn as they are expected to.

A couple of days back, the DesignView of

6条回答
  •  粉色の甜心
    2021-02-04 15:22

    Another possibility. I had a group of forms all descended from a base form. I added location save/restore code--and everything was coming up blank.

    After an hour of messing with it and not being able to find anything wrong it suddenly started throwing a null reference exception in the designer rather than just being blank. Duh--the save/restore code used an object that didn't exist design time.

    Why it was silent about it and then suddenly started squawking I have no idea.

提交回复
热议问题