如何获取网页GetElementById变量的值 Post By:2014/7/13 17:47:00 [只看该作者]
e.Form.Controls("WebBrowser1").Address = ProjectPath & "map2.htm" Dim tdom As System.Windows.Forms.HTMLDocument = e.Form.Controls("WebBrowser1").BaseControl.Document Do While tdom Is Nothing OrElse tdom.All("jcsj_value") Is Nothing OrElse tdom.GetElementById("jcsj_value").GetAttribute("value") Is Nothing Application.DoEvents Loop e.Form.controls("textbox2").value = tdom.GetElementById("jcsj_value").GetAttribute("value")