Remove Ads

Share on Facebook Share on Twitter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB.Net WebBrowser > GetElementByID
#1
I am using http://m3d0t.tk/

Right Click>View Source> then you move down to this:
[code]<div id="content">
<div id="startform">
<font color="#379BFF">•</font> Enter the URL(s) below (each URL on it's line, with http://[...]):

<font color="#379BFF">•</font> Maximum 5 files per day!

<form id="urlform" method="POST" onSubmit="download(); return false;">
<textarea id="urls" cols="69" rows="10" maxlength="10000"></textarea>


<center><input type="submit" value="Download them!" id="submitb" /></center>
</form>
</div> [/code]
What you want to do is take this line of code:
[code]WebBrowser1.Document.GetElementById("blah").InvokeMember("Click")[/code]
And change the "blah" to "submitb" < that makes it so if you click the button it will click the Submit button on the page

Now textboxes like this:
[code]WebBrowser1.Document.GetElementById("urls").SetAttribute("value", TextBox1.Text)[/code]
You use the ID urls to show where your program puts the text. Thus your program will enter that text for you Smile on button of coarse hope this helped.
Reply


Messages In This Thread
VB.Net WebBrowser > GetElementByID - by Ironside - 11-12-201004:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)