Results 1 to 10 of 10

Thread: [2008] Address Bar Problems?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2008
    Posts
    30

    [2008] Address Bar Problems?

    Hi. I am having troubles with my browser, when i load a page, nothing shows. No link, nothing. Please Help.

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

    Re: [2008] Address Bar Problems?

    What code are you using to navigate to a page?
    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
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    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?

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 2008
    Posts
    30

    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.

  5. #5
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    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.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jan 2008
    Posts
    30

    Re: [2008] Address Bar Problems?

    huh? I am a noobie. I don't speak VB.NET all to well

  7. #7
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    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.

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Jan 2008
    Posts
    30

    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.

  9. #9
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Re: [2008] Address Bar Problems?

    You could try something like this:

    vb.net Code:
    1. Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
    2.     txturl.Text = e.Url.ToString()
    3. End Sub

    Also note that you can use the Navigated and Navigating event.

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Jan 2008
    Posts
    30

    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
  •  



Click Here to Expand Forum to Full Width