asp.net不能用winforms的控件, 
默认也不去引用windows.forms, 真要加的话, 从项目那添加引用,选上System.Windows.Forms.dll, 但添加了也是没有用的
得专门做一个windows控件, 然后嵌入在网页的前台页面上

解决方案 »

  1.   

    panel加滚动条可以用样式单来实现
     style="OVERFLOW: scroll"
      

  2.   

    to answer your question, add this compiler option:/r:System.Windows.Forms.dllin aspx page, try<%@ Assembly Name="System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"%>
    >>>>就是给一个panel加个滚动条are you embedding window control in IE?
      

  3.   

    no,exactly, i just try to add  a scroll bar in panel
      

  4.   

    panel中用<div style="OVERFLOW: scroll;width:100%;height:100%">...panel中所有内容全放在这里
    </div>