|
-
Oct 16th, 2008, 02:59 PM
#1
Thread Starter
Junior Member
[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
-
Oct 16th, 2008, 03:03 PM
#2
Re: [2008] WebBrowser URL
Call the WebBrowsers Navigate method and pass the URL as an argument to it.
-
Oct 16th, 2008, 03:36 PM
#3
Re: [2008] WebBrowser URL
You can also set the Url property to a valid URI object.
Code:
web.Url = New Uri("http://google.ca")
-
Oct 16th, 2008, 04:34 PM
#4
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|