日期:2014-05-19  浏览次数:20919 次

无法引用System.Windows的原因?
想使用如下引用using   System.Windows.Forms;但System下却没有Windows不知是何原因?

------解决方案--------------------
在解决方案管理器那里,右键点引用,-> 添加引用,把system.windows.forms引进来就可以了
------解决方案--------------------
添加System.Windows.Forms的引用
------解决方案--------------------
System.Web.UI.WebControls.DataGrid
哪有TableStyles呢?

应是
System.Windows.Form.DataGrid
才有TableStyles
------解决方案--------------------
说白了,你那个类不能添加Windows引用,凡是控件都不行!你手动添加引用等于没引用,虽然语法没错!具体原因我也说不清!
应该建立Windows程序和用户控件!