Autor Beitrag
mr tobo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40



BeitragVerfasst: So 15.03.09 21:49 
Hallo.

Ich würd gerne ein Htmlelement "inputx" aus meinem webbrowser auslesen.
Leider ist dieses Element im Frame "main".
Wie kann ich jetzt mit einer getelementbyid()-Methode diesen Frame durchsuchen?
Probiert hab ich es schon mit.
ausblenden C#-Quelltext
1:
HtmlElement elem = webBrowser1.Document.GetElementById("main").Document.GetElementById("inputx");					
mr tobo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40



BeitragVerfasst: Di 16.06.09 18:07 
Die Lösung ist:
ausblenden C#-Quelltext
1:
HtmlElement elem = webbrowser1.window.frames["main"].document.getelementbyid("inputx");