And started extending it to include some additional functionality. The first major addition is the ability to enumerate and to the Favourites that are contained within the Users Favourites folder on their machine. Details regarding how this was achieved can be found in this post:
thanks for this gary, welcome additions to the jmc code
Thank you very much
I have a couple other ideas about what I would like to include in subsequent versions, it is just a case of finding the time. I am going to finish the C# version of the above, and then think about what I am going to do with it.
first off I want to tell you that this is an awesome tutorial very well put together. I have taken the liberty of downloading the zip zile and trying to build it myself step by step. I am pretty sure that when all is said and done I will walk away from this knowing a ton more.
however at the moment I am down to 73 errors LOL..i THINK that MOST of these errors are stemming from the fact that I did not use the right controller on the main form. specifically the main frame. You have it labeled "tabs" and i ASSUME that this is the tab control..but I am not so sure about that because in reality the code is pointing to tabbed web browser..so can you please explain to me which it is?? tab contol or web browser control...or both LOL..and if it is both, can you teach me how to incorporate both?? I tried putting a tab control down..and deleting the tabs..then placing a webbrowser control on top of that..well you know how that worked it will not do it..LOL!!
Have you made changes to the application, or are you seeing errors when you first try and run the application? If so, what version of Visual Studio are you using and what exactly are the errors that you are seeing?
i have not made a change one to anything..because I am fairly new at this and am not that confident to change something LOL..i mean outside of colors and images and stuff. but as far as actual code I do not change it. What the purpose of all of this for me was for learning. I like the way code is "categorized" in "regions" and how each of these "categories" are actually deemed to be what they are ..I know a little of alot of things cuz I have a great friend over at Daniweb that has taken his time to "tutor" me on a personal level. He has introduced xml..and listviews..and datagridviews..ect. to me and has shown me quite a bit..I seen this tutorial as a way to use some of what he has shown me!
anyway I do know what the problem is based on the errors I am getting. It is basically telling me that I have not built the web browser/tab control..controller correctly. and until I do..most of the code will not work.
what I have done so far is i figured out that you have a split panel on the main form. on the left side (panel 1) you have a tab control that holds the favorites/feeds/history. then on panel 2..what I think you did was lay a tab control down..and placed a web browser in that tab control. At first I could not get the web browser to go onto the tab control, would not let me. But then I brought this to my friend..and he explained to me that I would have to go back over to Jims site (the original poster of the original project) the one you list at the beginning of your tutorial..and type that code into my form in order for me to get the web browser to lay on the tab control. So I did that. and after that I did get the web browser into the tab contol. but all that has gotten me just that LOL..a tab control with a web browser in it. I do not understand how you got the "tabbed Web Browser"
Cuz i still have ....lol...a tab control and a web browser lol. i dont know what to do to achieve a control called "tabbed web browser"
i dont know how to combine the 2 tools (tab control and web browser) to make one control..dont know really how to explain it any better
if it would help Gary, I can post some of the errors here. but I didnt change a thing..I did name my application "mini Web" cuz it is sitting in my practice folder.
I can post some of the errors here in about a hour cuz right now I got house cleaning stuffs to do.
The code that I posted should work without you having to do anything, so I will need to do some digging to see what is going on there.
Can you clarify what version of VS 2008 you are using? i.e. the express edition, Standard, Professional etc, this will help in finding out what the problem is.
I went through and typed this out in word so I can post it here without skipping around too much..here is most of what is happening:
‘Tabs’ is not a member of ‘mini_web.MainWindow’
‘StartWithHomePage’ is not a member of ‘mini_web.My.MySettings’
These types of errors just go on and on..for a total of about 62.
There is 1 error that is a clue as to why the other 62/3 are existing…
This one is telling me that if I were to get this “tab Control and Web Brower” combined into one..then MOST of the errors I have will disappear:
Base Class ‘System.Windows.Forms.TabControl’ specified for Class ‘WebBrowserTabControl’ cannot be different from the base class ‘system.ComponentModel.Component’ of one of its other partial types.
So when I seen this particular error I studied more on your properties of the “panel 2” window and noticed that you have this panel showing as :
Tabs Enhanced_VB_Tabbed_Web_Browser.WebBrowserTabControl.
On mine it is listed in properties as:
2 different instances…one for the tab control under the web browser LOL..
Tabcontrol1 system.Windows.Forms.TabControl
AND when clicking on the main tab control area..I have a web browser with property listing of WebBrowser1 system.Windows.Forms.TabControl.
On yours you click on the white box of your panel2 and it shows:
WebBrowserTabControlTasks
On mine..
WebBrowser Tasks
For my forms I have:
AddFavoriteDialogue.vb……….windows form
CreateFolderDialogue.vb………windows form
FavoriteDirectoryInfo.vb………Class Form
FavoriteTreeNode.vb…………..Class Form
MainWindow.vb……………….Windows Form
OptionsDialogue.vb…………….Windows Form
These two forms are where a problem is:
From the icons on your forms..I guessed that these forms were built on a component forms..so I did this.
WebBrowserTabControl.vb…………Component Form
WebBrowserTabPage.vb…………….Component Form
However..your Forms show in properties that they are windows forms.
WebBrowserTabControl system.windows.forms.TabControl
And:
WebBrowserTabPage system.windows.forms.TabPage
So,,I think that I really missed something here LOL as your program runs great with no bugs..obviously it is not your end it is on mine for sure LOL.
I either did not understand something (obviously) or something just went flyin right over my head! (even more obvious)
Anyway, I did not do the properties on the main window in panel2 yet that is why they are still labeled TabControl1 and WebBrowser1..I did not do the properties and stuff yet because I know I did not do something right in combining the 2 together..*sigh*
Really want to get this and stuff, but at the moment it seems I am failing miserably
Ok, I have just downloaded the zip file attached to this thread, extracted it, built it, and it compiled without any errors?!?
Can you try downloading the file again, and build the application without making any modifications? Does it work?
From the errors that you are getting, it looks like you are trying to rename the project to start at mini_web, is that the case?
WebBrowserTabControl and WebBrowserTabPage are not forms, but rather they are custom controls, that derive from TabControl and TabPage respectively, and extend the base functionality.
yes, your file the one that is attached here..when I first found it, I did download the zip file and ran it and it ran perfectly without any errors, and still does
I then created a new project and named my application Mini Web because I have a folder on my computer that is called "practice" and that is where I store tutorials and such that I run across.
and yes you are correct about renaming I am not using "enhanced Web Browser" anywhere in my forms..they are being renamed based off the application name I gave this practice project "Mini Web"
The errors have dwindled down now to 54.
these errors I am having are in no way reflecting from your project..they are soley on my end. I think the problem has been located and with any luck by the end of the day I will be posting back to you a success story!
again, your tutorial is awesome and is working fine! somewhere however when I recreated it...lol I am in error LOL (which is not at all surprising!)
lemme see if we cant get this recreation to be as good as the original ..LOL the biggest part about learning is figuring out where ya screwed up at eh??? hehehheheheeeee ( I apparently did a dooooooooooozey!)
I think what hes done is tried to use the WebBrowserTabPage.vb and WebBrowserTabControl.vb in his project. Anyway onto my question, i have added them 2 class's to my project. When the project loads i have a webbrowser1 already in the manual designer and it has 1 tab this is my default tab. Then i have a button to add new tabs. What i was wondering is how can i call which is the currentbrowser? Like the one that is on the selected tab page? Thankyou for your time, hope you can help
Remember to rate posts with the button on the left()
If you look at the source code for the project, you will see that the WebBrowserTabControl.vb class (which is a custom class which derives from the TabControl class in the .Net Framework, handles the work of maintaining the SelectedWebBrowser, which is essentially the CurrentBrowser. If you have included the WebBrowserTabControl.vb in your project, then you should already have access to this.
there is a bug, i am facing same problem I open youtube link in a tab. i close that tab but still voices are coming. tab is removed but page is still there.
I cant seem to get the WebBrowserTabControl into the form, ive tried compiling WebBrowserTabControl.vb and WebBrowserTabPage.vb on their own with no luck, and I cant seem to drag the WebBrowserTabControl.vb into the form, it wont allow me, it shows a circle with a line through it when I drag it over, meaning I cant do it. Im using Visual Studio 2008 Pro.
When you add the user controls into the project, Visual Studio should automatically add them into a new section at the very top of the Toolbox.
If you have put these controls into their own project, and you are simply referencing the DLL, then you will likely need to add them manually to the Toolbox. This can be done by right clicking on the toolbox, and selecting "Choose Items..." then browse to the DLL, and then choose the control.
Ok, this makes no sense. Have you made any changes to the sample project, or are you running the extracted version of the project which it attached to this thread?
Right click on the project name in the solution explorer, and then click Add > Existing Item... then select your WebBrowserTabControl.vb and WebBrowserTabPage.vb