c#-System.winForms.Form和System.Windows.Forms.Form问题
在下初学C#,在一本书中看到,用windows Form编程,只要创建System.WinForms.Form类的子类,并对属性进行初始化就可以了,
可是当编译书中的例子时,它却出现了以下语句:
E:\mydoc\Visual Studio Projects\WindowsApplication5\Form1.cs(10): 类型或命名空间名称“WinForms”在类或命名空间“System”中不存在(是否缺少程序集引用?)
然后将System.WinForms.Form改为System.Windows.Forms.Form可以运行,只不过这两个属性不能用:this.SetSize和this.BorderStyle
请问书中所说为何与实际有所出入?为什么这两个属性不能用啊?
请高手赐教??