|
-
Jan 10th, 2008, 09:01 PM
#1
Thread Starter
Junior Member
[2008] Address Bar Problems?
Hi. I am having troubles with my browser, when i load a page, nothing shows. No link, nothing. Please Help.
-
Jan 10th, 2008, 09:21 PM
#2
Re: [2008] Address Bar Problems?
What code are you using to navigate to a page?
-
Jan 11th, 2008, 02:45 AM
#3
Re: [2008] Address Bar Problems?
- 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?
-
Jan 11th, 2008, 04:03 PM
#4
Thread Starter
Junior Member
Re: [2008] Address Bar Problems?
Athesist, I am using a basic
Code:
WebBrowser.Navigate(txturl.Text)
code for the go button, as for the text field, no code.
-
Jan 11th, 2008, 04:14 PM
#5
Frenzied Member
Re: [2008] Address Bar Problems?
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.
-
Jan 11th, 2008, 04:20 PM
#6
Thread Starter
Junior Member
Re: [2008] Address Bar Problems?
huh? I am a noobie. I don't speak VB.NET all to well
-
Jan 11th, 2008, 04:27 PM
#7
Frenzied Member
Re: [2008] Address Bar Problems?
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.
-
Jan 11th, 2008, 04:34 PM
#8
Thread Starter
Junior Member
Re: [2008] Address Bar Problems?
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.
-
Jan 11th, 2008, 04:42 PM
#9
Frenzied Member
Re: [2008] Address Bar Problems?
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.
-
Jan 11th, 2008, 04:44 PM
#10
Thread Starter
Junior Member
Re: [2008] Address Bar Problems?
Thank you very much with this! It works!
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
|