|
-
Jul 8th, 2008, 09:23 AM
#1
Thread Starter
New Member
[RESOLVED] Submit this Webbrowser form programmically?
Hi, im trying to submit this form which is on a webpage, loaded into webbrowser1
Code:
<form name=form1 method=post action=talk.php>
<input type="hidden" name="i" value="1">
<input type="hidden" name="input1" value="">
<font color=red face="verdana,arial" size=2></font></i></td><td width=70%><font size="2" face="verdana,arial" color="#000000">Hello! What is your name?</font></td></tr>
<tr><td valign=top><font face=verdana size=2>Input: </font></td><td valign=top><input type="text" name="input" size="55" class="text" style="width: 170px">
<input type="submit" name="Submit" value="Submit" class="knop">
</form>
Ive tried the following, but none seam to work
Code:
WebBrowser1.Document.Forms(1).Submit
WebBrowser1.Document.Forms(0).Submit
WebBrowser1.Document.All("form1").Submit
WebBrowser1.Document.Forms("form1").Submit
WebBrowser1.Document.Form1.Submit
Do you think its because the form name (in the HTML code) isnt in quotes?
Grateful if anyone could help 
Thanks.
Ive tried using
-
Jul 8th, 2008, 09:36 AM
#2
Thread Starter
New Member
Re: Submit this Webbrowser form programmically?
Wait guys, ive found a solution 
Code:
WebBrowser1.Document.All("submit").Click
;D
how do i mark this as solved?
-
Jul 8th, 2008, 09:45 AM
#3
Re: Submit this Webbrowser form programmically?
Pull down the Thread Tools menu, and click the Mark As Resolved menu item.
-
Jul 15th, 2008, 03:23 AM
#4
Lively Member
Re: [RESOLVED] Submit this Webbrowser form programmically?
is there a way to detect when a certain button from within the webbrowser control is actually clicked?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|