Results 1 to 8 of 8

Thread: 2 things about web browser.

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2006
    Location
    Australia
    Posts
    56

    2 things about web browser.

    Hey guys.
    im after 2 things.

    1st of all is it possible.

    i have some HTML code a form.
    i want 2 exec it inside the program 2 basicly imatate opening the html file in my computer and press submit.
    all done inside the actual program tho.


    2nd thing is
    In vb6 there is code to open up a page SOURCE CODE.
    the html code and stuff.
    so basically you can retrieve your ip from a site and stuff.


    If you can help me out it be SO helpful thanks guys.!
    my questions will be in vb6 or visual studios 2005

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: 2 things about web browser.

    Do you mean that you have HTML in like a textbox or something? Do you have a WebBrowser control on the form? If so, simply set the WebBrowser1.DocumentText property to whatever HTML youve got.

    The same property can be used to retrieve the html source from the displayed webpage.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2006
    Location
    Australia
    Posts
    56

    Re: 2 things about web browser.

    ok i got it now.

    need the 2nd part now.
    and also is there any way you can do it so you can put like a MASSIVE form in.
    without like a txtbox. cause if you do webform.documenttext = "text<""gw"" you kinda carnt.
    Last edited by SwInY; Feb 27th, 2007 at 07:46 AM.
    my questions will be in vb6 or visual studios 2005

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2006
    Location
    Australia
    Posts
    56

    Re: 2 things about web browser.

    bump
    my questions will be in vb6 or visual studios 2005

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: 2 things about web browser.

    If you want the source from a page loaded in a WebBrowser use its DocumentText property. If you want to get the source without using a WebBrowser then use the WebClient.DownloadString method.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Member
    Join Date
    Oct 2006
    Location
    Australia
    Posts
    56

    Re: 2 things about web browser.

    e.g please?
    my questions will be in vb6 or visual studios 2005

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: 2 things about web browser.

    Quote Originally Posted by SwInY
    e.g please?
    I suspect that your legs are just painted on.

    http://msdn2.microsoft.com/en-us/library/fhd1f0sw.aspx
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  8. #8

    Thread Starter
    Member
    Join Date
    Oct 2006
    Location
    Australia
    Posts
    56

    Re: 2 things about web browser.

    hey howd you know :\
    my questions will be in vb6 or visual studios 2005

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