类引用System.Windows.Forms变窗体这个是为什么?假如我还是想继续让他是一个类而不是窗体呢?应该怎么弄?先谢谢了~

解决方案 »

  1.   

    你如果写
    class A : System.Windows.Forms.Form
    {
        ...
    }
    就会变窗体如果你写
    using System.Windows.Forms;
    class A
    {
        ...
    }
    就不会。
      

  2.   

    class A : System.Windows.Forms.Form //这样才可以,继承自Form类,才能拥有Form的特性。
    using System.Windows.Forms;//这样是不可以的,只是引用了命名空间而已。
      

  3.   

    那你重新建一个窗体吧。只能说是你RPWT了。