Panel.Controls.Add()和this.ShowFormInPanel();我的vs里都找不到?需要引入哪个命名空间啊?

解决方案 »

  1.   

    第一句用下面的using System.Web.UI.WebControls;
    第二个。ShowFormInPanel是自定义的方法吧?
      

  2.   

    Panel:
        System.Windows.Forms;Panel:
        命名空间:  System.Web.UI.WebControls
       程序集:  System.Web(在 System.Web.dll 中)this.ShowFormInPanel();   是自己程序里的一个方法。
      

  3.   

    winform的话。。using System.Windows.Forms;