Results 1 to 4 of 4

Thread: [RESOLVED] [2008] WebBrowser URL

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2006
    Posts
    26

    Resolved [RESOLVED] [2008] WebBrowser URL

    Hey, this sounds like a silly question. But how do I set a web browser's url? The old Visual Basics it was simply web.url = "http://google.ca"

    But with this one it's different. How do I set the webbrowser to display a website?

    This is the error I get: Error 2 Value of type 'String' cannot be converted to 'System.Uri'. C:\Program Files\Devart\MyDirect.NET2\Samples\CRM\VB\MainForm.vb 206 31 CrmDemo

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

    Re: [2008] WebBrowser URL

    Call the WebBrowsers Navigate method and pass the URL as an argument to it.
    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
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2008] WebBrowser URL

    You can also set the Url property to a valid URI object.

    Code:
    web.Url = New Uri("http://google.ca")

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jun 2006
    Posts
    26

    Re: [RESOLVED] [2008] WebBrowser URL

    Thanks!

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