Web Browser Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kronecker@yahoo.co.uk

    Web Browser Question

    I have a very simple web browser which connects to a web site (lets
    say Google for example). How can I get
    my program to enter data that I type into the Google page and press
    the submit button? By this I mean that I have a text box in my program
    that I want to transfer data to the web page?

    Thanks

    K.
  • =?ISO-8859-1?Q?G=F6ran_Andersson?=

    #2
    Re: Web Browser Question

    kronecker@yahoo .co.uk wrote:
    I have a very simple web browser which connects to a web site (lets
    say Google for example). How can I get
    my program to enter data that I type into the Google page and press
    the submit button? By this I mean that I have a text box in my program
    that I want to transfer data to the web page?
    >
    Thanks
    >
    K.
    There is two ways of sending data in a request to the server. You can
    either make a POST or a GET.

    In a GET request you send the data by adding it to the URL.

    In a POST request you can also send form data.

    The form in the web page has a method property that determines how the
    browser sends the data. If it's not present, GET is the default.

    --
    Göran Andersson
    _____
    Göran Anderssons privata hemsida.

    Comment

    • kimiraikkonen

      #3
      Re: Web Browser Question

      On Aug 10, 12:13 am, kronec...@yahoo .co.uk wrote:
      I have a very simple web browser which connects to a web site (lets
      say Google for example). How can I get
      my program to enter data that I type into the Google page and press
      the submit button? By this I mean that I have a text box in my program
      that I want to transfer data to the web page?
      >
      Thanks
      >
      K.
      If understood correctly, place a textbox, a button and a webbrowser on
      your form, the textbox is for that you'll use to input words to search
      in Google. So, after pressing button the search will be performed and
      your webbrowser will be navigated to search result directy using:


      ' Here is your button's click event
      Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
      System.EventArg s) Handles Button1.Click
      ' Webbrowser control to display result with combining input in
      TextBox1 control
      WebBrowser1.Nav igate("http://www.google.com/search?hl=en&q= " &
      TextBox1.Text)
      End Sub


      Hope this helps,

      Onur Güzel

      Comment

      • Cor Ligthert[MVP]

        #4
        Re: Web Browser Question

        Kronecker,

        A so called webbrowser is nothing more then the reusing in IE, so find out
        how to do it in IE then you know it in the WebBrowser.

        Cor

        <kronecker@yaho o.co.ukschreef in bericht
        news:fcf72a15-c03c-4179-9952-811f242456af@h1 7g2000prg.googl egroups.com...
        >I have a very simple web browser which connects to a web site (lets
        say Google for example). How can I get
        my program to enter data that I type into the Google page and press
        the submit button? By this I mean that I have a text box in my program
        that I want to transfer data to the web page?
        >
        Thanks
        >
        K.

        Comment

        Working...