Windows forms designer NullReferenceException- where to go from here?

后端 未结 2 355
[愿得一人]
[愿得一人] 2021-01-28 01:42

When I try to open one of my forms in the designer, it says, \"Object reference not set to an instance of an object.\" It does not provide a way to continue, and it does not giv

2条回答
  •  长情又很酷
    2021-01-28 02:24

    This is because there is' an exception in the event "Load" of the form. Place the code inside a "try .. catch" block to see the exception

提交回复
热议问题