Results 1 to 9 of 9

Thread: How to get or set the url in a web-browser?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    20

    Question How to get or set the url in a web-browser?

    Hi!
    How can i get the function to Get or set Url for a Process
    (ex: internet explorer)

    thanks

    If (date.day==monday) {
    date.day = friday;
    }

  2. #2
    Hyperactive Member JXDOS's Avatar
    Join Date
    Aug 2006
    Location
    Mars...
    Posts
    423

    Re: How to get or set the url in a web-browser?

    VB Code:
    1. private sub Form1_Load
    2.     webpage.url = "wt eva u want"
    3. end sub

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    20

    Re: How to get or set the url in a web-browser?

    I mean to do that in a another process.

    If (date.day==monday) {
    date.day = friday;
    }

  4. #4
    Fanatic Member dom_stapleton's Avatar
    Join Date
    Sep 2005
    Location
    Leigh-on-Sea, UK
    Posts
    665

    Re: How to get or set the url in a web-browser?

    You can open a URL with the default browser by using:

    VB Code:
    1. System.Diagnostics.Process.Start("http://www.google.co.uk")
    I use Microsoft Visual Basic 2008 Express Edition.

    If my post has been helpful, please rate it, unless you don't believe in Karma... which actually I don't!

    Resources:
    Visual Basic Tutorials (1, 2) | MSDN Library | Google | Krugle | Search Forums

    Free components:
    Windows Forms Components | XP Common Controls Library

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    20

    Re: How to get or set the url in a web-browser?

    But, is it posible to do some thing like this:
    VB Code:
    1. process.start("www.google.com")
    2. if geturl = "www.google.com" then
    3. seturl("www.test.com")
    4. end if
    5. ' How can i connect to the process and get the function "geturl" and "seturl"?
    Please help

    If (date.day==monday) {
    date.day = friday;
    }

  6. #6
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: How to get or set the url in a web-browser?

    Quote Originally Posted by zenteo
    But, is it posible to do some thing like this:
    VB Code:
    1. process.start("www.google.com")
    2. if geturl = "www.google.com" then
    3. seturl("www.test.com")
    4. end if
    5. ' How can i connect to the process and get the function "geturl" and "seturl"?
    Please help
    Hi,

    Here's a link about the Geturl:

    http://search.msdn.microsoft.com/sea...0&query=geturl

    And seturl:

    http://search.msdn.microsoft.com/sea...siteid=0&tab=0

    Hope it helps,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    20

    Re: How to get or set the url in a web-browser?

    The question is: how i can have a project, that opens a test-program and run a public sub in the test-program. I'll get the test-program to do something when i run the project.

    If (date.day==monday) {
    date.day = friday;
    }

  8. #8
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: How to get or set the url in a web-browser?

    What you are trying to do will require API, because you are trying to modify information in other applications when no interfaces are built in. You will have to use API functions like FindWindowEX, SendMessage, etc in order to do it. You will get more answers if you post in the API section in this forum, but it seems like a common question if you do a search in the API section. Probably some examples already posted...

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    20

    Re: How to get or set the url in a web-browser?

    ok thank you anyway!

    If (date.day==monday) {
    date.day = friday;
    }

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