Page 3 of 3 FirstFirst 123
Results 81 to 96 of 96

Thread: Enhanced VB Tabbed Web Browser

  1. #81

    Thread Starter
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Enhanced VB Tabbed Web Browser

    Doh!

    Feel free to use anything here that you think will be useful. Kudos has to to go to John who created the original version, I just extended it slightly.

    Gary

  2. #82
    Lively Member Amerigo's Avatar
    Join Date
    Dec 2008
    Location
    PSR B1620-26 c-1
    Posts
    126

    Re: Enhanced VB Tabbed Web Browser

    Well, I checked it out. I may be able to use some methods regarding favorites (favourites ). The browser itself still uses the default contextmenustrip which keeps "Open in new tab" grayed out and disabled. That is one of main reasons I made mine is to have a custom menu that will open links/images in a new tab. As is, yours only provides "Open in new Window" which launches IE. Using my tabbed browser control, it's not even possible to open a link in IE. Although, I may add the option to open in the default browser in case my .dll is used in an app that is not intended to be a regular browser.... Hmmm, back to work...
    Anyone who does not wonder, is either omnipotent or a fool.
    Amerigoware <<<My Projects

  3. #83

    Thread Starter
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Enhanced VB Tabbed Web Browser

    Cool, hopefully it will be of some use.

    Feel free to fork the code, and make any updates

    Gary

  4. #84
    Lively Member
    Join Date
    Aug 2010
    Posts
    68

    Re: Enhanced VB Tabbed Web Browser

    Anyway of the treeview having more then one sub folder.

    So if a favourite has folders inside of it, how can I make them show? Currently they don't display
    Last edited by therealianc; Oct 21st, 2013 at 02:18 PM.

  5. #85

    Thread Starter
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Enhanced VB Tabbed Web Browser

    Hello,

    I have not looked at this code in a while, but it should simply be a case of recursing into each sub directory, and doing the same logic again.

    If you don't get anywhere, let me know, and I will have a look at the code.

    Gary

  6. #86
    Lively Member
    Join Date
    Aug 2010
    Posts
    68

    Re: Enhanced VB Tabbed Web Browser

    Quote Originally Posted by gep13 View Post
    Hello,

    I have not looked at this code in a while, but it should simply be a case of recursing into each sub directory, and doing the same logic again.

    If you don't get anywhere, let me know, and I will have a look at the code.

    Gary
    I'll have a look at this again, I have been trying to find out which parts of the code do what.

    Looking at this line here
    Code:
                '   For Each dirName In Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.Favorites)
    If you add to the end of "favourites)"
    Code:
     "*.url", SearchOption.AllDirectories)
    Then it shows everything but then nothing is in folders and everything has a + symbol against it.

    May need to do a little research on "recursing" as I've not done / used that before.

    Will let you know how I get on.
    Thanks for any help in advance

  7. #87

    Thread Starter
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Enhanced VB Tabbed Web Browser

    Hello,

    Yes, you are definitely on the right lines

    Where I am For Each'ing through the content of a single directory, you would need to do the same thing, for each directory within the root directory. This is where the recursion is happening.

    Let me know if you are having issues, and I will take a look.

    Happy to take a pull request on the GitHub repo if you get this working

    Gary

  8. #88
    Lively Member
    Join Date
    Aug 2010
    Posts
    68

    Re: Enhanced VB Tabbed Web Browser

    Quote Originally Posted by gep13 View Post
    Hello,

    Yes, you are definitely on the right lines

    Where I am For Each'ing through the content of a single directory, you would need to do the same thing, for each directory within the root directory. This is where the recursion is happening.

    Let me know if you are having issues, and I will take a look.

    Happy to take a pull request on the GitHub repo if you get this working

    Gary
    Hi Gary,

    Been playing around with this for a couple of days but not getting any closer to the end result.

    I sort of understand each line of code as i've been copying each line of code twice, running the program and seeing what changes / multiples.

    The code i put before is as close as i've got.

    So i'm kind of stuck.

  9. #89

    Thread Starter
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Enhanced VB Tabbed Web Browser

    Ok, I will see if I can grab some time at the weekend to make a change to the code on Github to include this. To help with this, can I get you to add a request here:

    https://github.com/gep13/VBForums-En...ser/issues/new

    That way I am less likely to forget about it

    Gary

  10. #90
    Lively Member
    Join Date
    Aug 2010
    Posts
    68

    Re: Enhanced VB Tabbed Web Browser

    Quote Originally Posted by gep13 View Post
    Ok, I will see if I can grab some time at the weekend to make a change to the code on Github to include this. To help with this, can I get you to add a request here:

    https://github.com/gep13/VBForums-En...ser/issues/new

    That way I am less likely to forget about it

    Gary
    Done

  11. #91

    Thread Starter
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Enhanced VB Tabbed Web Browser

    Just checked in basic fix.

  12. #92
    Lively Member
    Join Date
    Aug 2010
    Posts
    68

    Re: Enhanced VB Tabbed Web Browser

    Quote Originally Posted by gep13 View Post
    Just checked in basic fix.
    Just tried it, works perfectly Thanks you for that.

    Incase anyone else is reading and originally had the favourites loading to IE the code has changed slightly.

    This will work
    Code:
        Private Sub FavouritesTreeView_NodeMouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles FavouritesTreeView.NodeMouseDoubleClick
                Dim myFav As FavouriteTreeNode = DirectCast(e.Node, FavouriteTreeNode)
                System.Diagnostics.Process.Start("iexplore.exe", myFav.Tag)
    
        End Sub

  13. #93

    Thread Starter
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Enhanced VB Tabbed Web Browser

    Not a problem at all.

    Happy to help. Let me know if there are any other feature suggetions, or bugs.

    Gary

  14. #94
    New Member
    Join Date
    Nov 2013
    Posts
    1

    Re: Enhanced VB Tabbed Web Browser

    Hello,

    is it possible to change the event of clicking a link on a website? When you click on a link which opens a new page/tab, IE is opening a new window.
    Is it possible to open a new tab in this web browser?

    Thanks.
    Bas

  15. #95
    Lively Member
    Join Date
    Jul 2011
    Location
    UK
    Posts
    72

    Question Re: Enhanced VB Tabbed Web Browser

    Quote Originally Posted by gep13 View Post
    Not a problem at all.

    Happy to help. Let me know if there are any other feature suggetions, or bugs.

    Gary
    Hi

    I know this thread is a few years old but I had been searching for code to show IE favorites in a treeview and out of all the ones I tried - yours was the only one which worked perfectly for me!!

    What I would like to try and do though is improve it so it shows the favorites icons/images as well i.e. like you see them in IE

    And also how easy is it to show a folder icon next to each folder - just to make list look nicer?

    Is this at all possible?

    Thanks for the great article and app - has been very helpful for me

  16. #96

    Thread Starter
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Enhanced VB Tabbed Web Browser

    Quote Originally Posted by wingers View Post
    Hi

    I know this thread is a few years old but I had been searching for code to show IE favorites in a treeview and out of all the ones I tried - yours was the only one which worked perfectly for me!!

    What I would like to try and do though is improve it so it shows the favorites icons/images as well i.e. like you see them in IE

    And also how easy is it to show a folder icon next to each folder - just to make list look nicer?

    Is this at all possible?

    Thanks for the great article and app - has been very helpful for me
    Hello wingers,

    I am glad to hear that you are getting some use out of it :-)

    All the source code for the Browser is located in my GitHub Repository:

    https://github.com/gep13/VBForums-En...ed-Web-Browser

    So feel free to create an issue over there for what you would like to see added, and we can see what can be done. I don't "think" it should be too hard, but it has been a while since I have looked at this code.

    Gary

Page 3 of 3 FirstFirst 123

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