下面的是用户控件的代码
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using Specter.BusinessLogic.OrderLogic;namespace Specter.ActiveXEngine.SysOrder
{
    [Guid("DE2E497D-8E49-4166-910C-00D3E565C348")]
    public partial class Cry_OrderActiveX : UserControl,IObjectSafty
    {
        public Cry_OrderActiveX()
        {
            InitializeComponent();
        }        #region IObjectSafty实现
        public void GetInterfacceSafyOptions(Int32 riid, out Int32 pdwSupportedOptions, out Int32 pdwEnabledOptions)
        {
            pdwSupportedOptions = 1;
            pdwEnabledOptions = 2;
        }        public void SetInterfaceSafetyOptions(Int32 riid, Int32 dwOptionsSetMask, Int32 dwEnabledOptions)
        {        }
        #endregion        #region 控件加载
        private void Cry_OrderActiveX_Load(object sender, EventArgs e)
        {        }
        #endregion        #region 日报表
        private void btnDay_Click(object sender, EventArgs e)
        {
            UChart.DataSource = null;
            DataTable dt = OrderLogic.Cry_Order_Day(DateStart.Value.ToString("yyyy-MM-dd"), DateEnd.Value.ToString("yyyy-MM-dd"));
            UChart.DataSource = dt;
        }
        #endregion        #region 月报表
        private void btnMonth_Click(object sender, EventArgs e)
        {
            DataTable dt = OrderLogic.Cry_Order_Month(DateStart.Value.ToString("yyyy-MM-dd"), DateEnd.Value.ToString("yyyy-MM-dd"));
            UChart.DataSource = dt;
        }
        #endregion        #region 站内销量
        private void btnSite_Click(object sender, EventArgs e)
        {
            UChart.DataSource = null;
            DataTable dt = OrderLogic.Cry_Order_Site(DateStart.Value.ToString("yyyy-MM-dd"), DateEnd.Value.ToString("yyyy-MM-dd"));
            UChart.DataSource = dt;
        }
        #endregion
    }
}但打开设计器,设计器显示的是html代码了
如下面的,这到底是怎么回事啊
<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><title></title><style>.ErrorStyle { font-family: tahoma; font-size: 11 pt; text-align: left}.DetailsStyle { font-family: tahoma; font-size: 10pt; text-align: left;text-indent: 0; word-spacing: 0; line-height: 100%; float: left; margin-top: 0; margin-bottom: 0}.StackStyleVisible { font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}.StackStyleHidden { display:none; font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}</style></head><body><DIV class="DetailsStyle" width="100%"><table border="0" width="100%" id="table1" height="100%" cellspacing="0" cellpadding="0"><tr><td height="40" bgcolor="#FF9999" width="8%" style="letter-spacing: 0" align="center"><img border="0" src="C:\Documents and Settings\Administrator\Local Settings\Temp\675311.tmp" width="35" height="35" alt="ErrorImage" ></td><td height="40" bgcolor="#FF9999" width="91%" style="vertical-align: top; letter-spacing: 0" align="left"><b><font size="2" face="Arial" fontsize="70%">鍔犺浇璁捐鍣ㄦ椂閬囧埌涓€涓垨澶氫釜閿欒銆傝繖浜涢敊璇湪涓嬮潰鍒楀嚭銆備竴浜涢敊璇彲閫氳繃閲嶆柊鐢熸垚椤圭洰鏉ヤ慨澶嶏紝鑰屽彟涓€浜涢敊璇垯闇€瑕佹洿鏀逛唬鐮併€?/font><font size="2" face="Arial"></font></b></td></tr><tr><td colspan="2" align="left" valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>鏈兘鍔犺浇鏂囦欢鎴栫▼搴忛泦鈥淚nfragistics.License, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb鈥濇垨瀹冪殑鏌愪竴涓緷璧栭」銆傜郴缁熸壘涓嶅埌鎸囧畾鐨勬枃浠躲€?</span><br><a href="" id="details0">闅愯棌</a><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp</font></DIV> </td> </tr> <tr><td colspan="2" align="left" valign="top"><DIV id="div20" class="StackStyleVisible" width="100%"><br>   鍦?System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)<br>   鍦?System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)<br>   鍦?System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)<br>   鍦?System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)<br>   鍦?System.Activator.CreateInstance(String assemblyName, String typeName)<br>   鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraProductInfo.LoadAllNewerProductInfo()<br>   鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraLicenseBaseAttribute.LoadProductArray()<br>   鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraLicenseBaseAttribute.get_AllProducts()<br>   鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraLicenseProvider.GetDesignTimeLicense(Type type, Object instance, Boolean allowExceptions, UltraLicenseBaseAttribute licenseAttribute)<br>   鍦?Infragistics.Win.UltraWinChart.WinChartHelper.Shared.UltraLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)<br>   鍦?System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)<br>   鍦?System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license)<br>   鍦?System.ComponentModel.LicenseManager.Validate(Type type, Object instance)<br>   鍦?Infragistics.Win.UltraWinChart.UltraChart..ctor()</DIV></td></tr></table></div></body></html>

解决方案 »

  1.   

    vs中,窗口下边
    设计 or 源?
      

  2.   

    你这是Forms 怎么有HTML代码了。你是不是用错东西了~。
      

  3.   

    没,这窗体是在IE浏览器中使用Windows窗体控件,也就打开这个窗体的设计器就变成了html代码了
      

  4.   

    在vs中,打开设计器,设计器中显示的是html的代码,而不是控件
      

  5.   

    选择“设计”还显示的是html代码,你的QQ是什么,你远程看下,我的QQ是1556526164
      

  6.   

    你在web服务器上运行一个WinForm控件对象,有什么意义?你远程访问过什么?
      

  7.   

    给我解决一下了
    这个还没有搞好,在这我还想问一下ultragrid控件通过数据源去绑定数据,并且设置列头为中文,就像
    DataGridView控件中的DataProperName属性一样
      

  8.   

    相关事项什么功能
    web使用activex控件
      

  9.   

    简单的出来方法是,到Cry_OrderActiveX的另一个文件里,把用到activex的控件删去,应该可以看到效果了。功能设计完成后,再把删去的控件放回去。
      

  10.   

    我在vs2008中打开的是一个错误网页,说是Infragistics.Win.UltraWinGrid.UltraGrid UGvList控件没有赋值