none
how to solve it?i use public partical class XXX:Form and public partical class YYY:Form in one .cs file RRS feed

  • 问题

  • 类型 Server 由同一文件中的几个分部类组成。
    此错误的实例(1)
    1. 隐藏调用堆栈
    在 System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
    在 System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
    在 Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
    --- 引发异常的上一位置中堆栈跟踪的末尾 ---
    在 Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
    在 System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host) 
    2020年5月25日 8:18

全部回复

  • Hi,

    你的问题不是很清楚。你目前在做什么导致了上面的异常。

    如果你想要创建控件类库,你需要右击解决方案->添加 Winform控件类库来写代码创建类库。

    Best Regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2020年5月29日 7:42
    版主