How do I keep Visual Studio's Windows Forms Designer from deleting controls?

前端 未结 6 1681
离开以前
离开以前 2020-12-21 05:19

With several forms of mine, I occasionally run into the following issue: I edit the form using the designer (Visual Studio 2008, Windows Forms, .NET 2.0, VB.NET) to add comp

6条回答
  •  盖世英雄少女心
    2020-12-21 05:58

    If you can reproduce the problem, then you can determine whether or not the cause is an exception. Start a second instance of Visual Studio and use "Tools->Attach to Process" to attach to the first one. Then proceed to reproduce the problem, and the code should break when the unhandled exception is thrown. Information about other exceptions (possibly handled) will be visible in the Output window.

提交回复
热议问题