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
Printable View
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
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...
Cool, hopefully it will be of some use.
Feel free to fork the code, and make any updates :)
Gary
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
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
If you add to the end of "favourites)"Code:' For Each dirName In Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.Favorites)
Then it shows everything but then nothing is in folders and everything has a + symbol against it.Code:"*.url", SearchOption.AllDirectories)
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 :)
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.
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
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
Not a problem at all.
Happy to help. Let me know if there are any other feature suggetions, or bugs.
Gary
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
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