Results 1 to 4 of 4

Thread: [RESOLVED] Submit this Webbrowser form programmically?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    4

    Resolved [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

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    4

    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?

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Submit this Webbrowser form programmically?

    Pull down the Thread Tools menu, and click the Mark As Resolved menu item.

  4. #4
    Lively Member
    Join Date
    Jan 2007
    Posts
    96

    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
  •  



Click Here to Expand Forum to Full Width