Control lCtrl =(sender as Control);
错误 7 “Toppine.Control”是“命名空间”,但此处被当做“类型”来使用

解决方案 »

  1.   

    项目中有一个namespace Toppine.Control 怎么办? 
      

  2.   

    System.Windows.Forms.Control  WINFORM
    System.Web.UI.Control   WEBFORM
    明白不上面是win下面是web
      

  3.   

    using System.Windows.Forms.Control;
    错误 1 using 命名空间指令只能应用于命名空间;“System.Windows.Forms.Control”是一个类型,而不是命名空间 E:\MaxIPAD-Control\MaxIPAD-Control\PlayManager\frmLayOutDraw.cs 9 7 MaxIPAD-Control
      

  4.   

    命名空间:System.Windows.Forms
    程序集:System.Windows.Forms(在 system.windows.forms.dll 中)
      

  5.   

    using System.Windows.Forms;
    Control已经是类了,不用using