楼上的二位,把问题看清楚了再答,原贴写明是“设计WinForm用户控件时发生问题”To design the form, the Design view of the form uses the first class that is in the Code view of the form,参考 The Software Development Kit WinTalk sample cannot be opened in Design view in Visual Studio .NET http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B834062还有,尽量别改动Visual Studio自动产生的编码
is in the Code view of the form,参考
The Software Development Kit WinTalk sample cannot be opened in Design view in Visual Studio .NET
http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B834062还有,尽量别改动Visual Studio自动产生的编码
你应该把类myTextBox这个类向上移动
让他成为代码文件的第一个类
错误已经说的很清楚了
把你自己定义的类放到后面来
让TextBox类到上面去