當前位置:編程學習大全網 - 網站源碼 - c# webBrowser加載網頁後,如何找到只有Name屬性的控件?

c# webBrowser加載網頁後,如何找到只有Name屬性的控件?

應該有GetElementByName,但是是數組...而且還需要再遍歷壹遍。

補充。您獲取的文檔對象似乎有問題。這是我取它的方法。

htmlDoc = (mshtml。html document)this . webbrowser 1。Document . DomDocument

IHTMLElement element = html doc . getelementbyid(" fastpostmessage ");

應該是this . webbrowser 1 . document . DOM document;這

補充:請把頁面的代碼發給我看看。...

  • 上一篇:行業知識:什麽是智慧消防
  • 下一篇:崩壞三萊爾頭像怎麽獲得
  • copyright 2024編程學習大全網