小编kks*_*199的帖子

使用mshtml不起作用

我有ac#app,我尝试过使用一些mshtml元素.但我有一个问题.该using mshtml;命名空间给了我一个错误的Visual Studio 2012.

这是我的源代码,

namespace Tagger
{

    using mshtml;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Runtime.CompilerServices;
    using System.Text;

    public class HTMLForm
    {
        private string _action = "";
        private string _method = "";
        public Hashtable Inputs = new Hashtable();

        public HTMLForm(IHTMLFormElement element)
        {
            this._method = element.method;
            this._action = element.action;
            foreach (IHTMLInputElement element2 in (IHTMLElementCollection) element.tags("input"))
            {
                try
                {
                    string name = element2.name;
                    string str2 = element2.value;
                    if (name == null)
                    {
                        name = element2.type;
                    }
                    this.Inputs.Add(name, str2); …
Run Code Online (Sandbox Code Playgroud)

c# mshtml

17
推荐指数
2
解决办法
3万
查看次数

标签 统计

c# ×1

mshtml ×1