-
Jul 4th, 2013, 01:10 AM
#81
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
-
Jul 4th, 2013, 08:37 AM
#82
Lively Member
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
-
Jul 5th, 2013, 02:29 AM
#83
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
-
Oct 16th, 2013, 05:27 PM
#84
Lively Member
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.
-
Oct 21st, 2013, 03:52 PM
#85
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
-
Oct 21st, 2013, 04:29 PM
#86
Lively Member
Re: Enhanced VB Tabbed Web Browser
Originally Posted by gep13
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
-
Oct 22nd, 2013, 01:25 AM
#87
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
-
Oct 23rd, 2013, 09:36 AM
#88
Lively Member
Re: Enhanced VB Tabbed Web Browser
Originally Posted by gep13
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.
-
Oct 24th, 2013, 01:14 AM
#89
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
-
Oct 24th, 2013, 04:19 PM
#90
Lively Member
Re: Enhanced VB Tabbed Web Browser
Originally Posted by gep13
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
-
Oct 25th, 2013, 10:56 AM
#91
Re: Enhanced VB Tabbed Web Browser
Just checked in basic fix.
-
Oct 26th, 2013, 04:41 AM
#92
Lively Member
Re: Enhanced VB Tabbed Web Browser
Originally Posted by gep13
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
-
Oct 26th, 2013, 04:41 PM
#93
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
-
Nov 12th, 2013, 03:50 AM
#94
New Member
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
-
Apr 29th, 2016, 09:06 AM
#95
Lively Member
Re: Enhanced VB Tabbed Web Browser
Originally Posted by gep13
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
-
Apr 30th, 2016, 03:27 AM
#96
Re: Enhanced VB Tabbed Web Browser
Originally Posted by wingers
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
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
|