Hi. I am having troubles with my browser, when i load a page, nothing shows. No link, nothing. Please Help.
Printable View
Hi. I am having troubles with my browser, when i load a page, nothing shows. No link, nothing. Please Help.
What code are you using to navigate to a page?
- Are you running code to open a browser and view a certain file or webpage?
- Are you running a new ASP.net project and wanting to see your page in runtime mode?
- Are you trying to view samples or help within the VS IDE & talking about that browser address bar?
If it's the 1st one, check you're not working in offline mode in IE & if that checks out ok, then, as suggested already - post your code so we can check it.
If it's the 2nd, have you set the start page by right clicking a web file within the project manager window (which the F4 key brings up) and selecting the "set as start page" option, before you're running the project?
Athesist, I am using a basiccode for the go button, as for the text field, no code.Code:WebBrowser.Navigate(txturl.Text)
This is happening too much today..
http://vbforums.com/showpost.php?p=3106833&postcount=6
Are you sure that which is contained within txturl is actually a valid url? Are you sure the go button event handler is actually being called? Have you set a breakpoint? WebBrowser looks like a class name instead of an instance name. Are you sure you are referring to the instance version of the WebBrowser? If so, you should probably consider changing the name to something different from the name of the class. This sort of thing conflicts with the default instance "feature" and class names.
huh? I am a noobie. I don't speak VB.NET all to well
That doesn't really matter. Telling us what you are trying to do, what actually happens, and the errors you are retrieving doesn't really take much programming skills.
Alright, whatever helps solve the issue :). What I am trying to do is that when you navigate to a certain page (say you type in www.vbforums.com) and you click on one of the links (like .NET), I would like the textbar (txturl) do display the URL. What it is currently doing is If I were to type in vbforums.com, and click on a link, it stays on vbforums.com.
You could try something like this:
vb.net Code:
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted txturl.Text = e.Url.ToString() End Sub
Also note that you can use the Navigated and Navigating event.
Thank you very much with this! It works!