请问.NET   2005中是否有这样的控件?
-----------
没有吧。

解决方案 »

  1.   

    <html style="width:500px;height:260px;">
    <title>其它+js测试窗口(主窗口是win,此标离开对象是obj;右键运行)</title>
    <body scroll=auto topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>
    <textarea id=jsinput style="width:100%; height:150px;" ondblclick="eval(this.value)">
    //alert(obj.outerHTML);
    //playMId(1);
    </textarea><span onclick="transelect(this)" style="width:100%;"><button style="width:100%;">点此显示或更改要翻译的英文</button></span>
    <input type=button value=自动填表 onclick="getForm()" style="width:100%;">
    <input type=button value=打开源文件 onclick="runExe(location.pathname)" style="width:100%;">
    <input type=button value=保存输入框中文字到文件 onclick="runExe(location.pathname)" style="width:45%;">
    <input type=file style="width:45%;"><script language="javascript">
    var win = external.menuArguments;
    var obj = external.menuArguments.event.srcElement;function transelect(object)
    {
      if(object.outerText == "点此显示或更改要翻译的英文")
      {
        object.innerHTML = '点此翻译后面文字<input id=traninput>';    if(win.document.selection.type == "Text")
        {
           traninput.value = win.document.selection.createRange().text;
        }
      }else if(isNaN(traninput.value * 1))
       {
         if(typeof(win.tranform) != "object")
         {
          var newform  = win.document.createElement("FORM");
          win.document.body.insertAdjacentElement("afterBegin",newform);
          newform.id = "tranform";
          newform.action = "http://translate.google.com/translate_t?langpair=en|zh-CN";
          newform.method = "post";
          newform.target = "_tranwin";
          newform.innerHTML = '<INPUT type=hidden value=en name=hl><INPUT type=hidden value=UTF8 name=ie>'
                            + '<input id=source dir=ltr name=text>';
        }    win.tranform.source.value = traninput.value;
        win.tranform.submit();
       }}function getForm()
    {try
     {
        for(var formObj = obj; formObj.tagName != "FORM"; )
        {
            formObj = formObj.parentElement;
        }
     }catch(e)
      {
         return window.close();
       } checkInput(formObj.elements);
    }function checkInput(formObj)
    {
      var inputId;
      var pass = "83703228";
      var myId = "qidizi";
      var email = "[email protected]";  for (var inputIndex = 0; inputIndex<formObj.length; ++inputIndex)
      {
          if (formObj[inputIndex].id == formObj[inputIndex].name)
          {
             inputId = formObj[inputIndex].id;
          }else if (formObj[inputIndex].id == "")
           {
             inputId = formObj[inputIndex].name;  
           }else
            {
               inputId = formObj[inputIndex].id;
            }      switch (formObj[inputIndex].type)
          {     
                case "password": //密码
                     formObj[inputIndex].value = pass;
                     break;
                case "text":
                     if ( (/e.*mail/gi.test(inputId)) )
                     {//email
                          formObj[inputIndex].value = email;
                     }else if ( (/(user)|(name)|(id)|(nickname)|(nick)/gi.test(inputId)) )
                      {//id
                          formObj[inputIndex].value = myId;
                          myId = "";
                      }
                     break;
                default:
                     break;
          }
      }  window.close();
    }function runExe(path)
    {  
        var wshshell = new ActiveXObject("WScript.Shell");
        wshshell.run('Notepad.exe "' + path);
        wshshell = null;
    }</script>
      

  2.   

    Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\打开js测试窗口]
    @="f:\\html\\iejstest.htm"
    "flags"=dword:00000001