Link to home
Start Free TrialLog in
Avatar of bail3yz
bail3yz

asked on

WebBrowser Control VB

Hi,

Whats the easiest way to highlight all the text in a WebBrowser control and put it into a string variable?

I was going to program select all on the webbrowser handle.. than copy.. than take the contents of the clipboard.. but I imagine theres an easier way
Thanks
ASKER CERTIFIED SOLUTION
Avatar of hes
hes
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bail3yz
bail3yz

ASKER

Web1.Document.body.innerHTML does not give me the text I want.. I tried that already :(
Avatar of bail3yz

ASKER

just to clarify the text i want shows up as a variable in innerhtml
Avatar of bail3yz

ASKER

Ah my mistake.. your method did work.. I was just doing it too soon

I was doing it as soon as the page download was complete, however apparently the variables werent filled until shortly after.. strange.. but whatever

Thanks