[RESOLVED] BeforeNavigate2-VBForums
Results 1 to 4 of 4

Thread: [RESOLVED] BeforeNavigate2

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2010
    Posts
    264

    Resolved [RESOLVED] BeforeNavigate2

    I'm creating a simple web browser. I have a combobox for the url address bar. I'd like the combobox to drop down and display the sites that have already been viewed. I think I can use the BeforeNavigate2 event to do this but I'm unsure how to use it.

    If anyone has any suggestions or could point me in the right direction I would be very grateful.

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,817

    Re: BeforeNavigate2

    Hi,

    You can do something like this:

    Code:
    Combobox1.items.add(webbrowser1.url.tostring)
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2010
    Posts
    264

    Re: BeforeNavigate2

    Thanks sparrow. This worked great, but I had to use "LocationURL" in place of "url".

  4. #4
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,817

    Re: BeforeNavigate2

    Hi,

    That you needed LocationUrl wasn't mentioned, but if it still answered your problem.
    Mark this thread as resolved.

    Thanks.
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.