|
-
Oct 11th, 2008, 07:24 AM
#1
Thread Starter
New Member
[2008] Tabbed Web Browser with Progress Bar
Hello
I really need help! I have a tabbed web browser and i can't figure out how to use a progress bar with it!
Thanks,
GeekBoy124
Last edited by geekboy124; Oct 11th, 2008 at 07:43 AM.
-
Oct 11th, 2008, 08:10 AM
#2
Re: [2008] Tabbed Web Browser with Progress Bar
Handle the ProgressChanged event of the WebBrowser. Have a look at the members of the e eventargs object. There are two properties in there that you should assign to two very similar properties on your ProgressBar, I believe its pretty easy to see which
-
Oct 11th, 2008, 08:10 AM
#3
Frenzied Member
Re: [2008] Tabbed Web Browser with Progress Bar
Search for a ProgressChanged event, handle it and increment the Value property of the progress bar accordingly.
Please rate helpful ppl's posts. It's the best 'thank you' you can give 
-
Oct 11th, 2008, 08:41 AM
#4
Thread Starter
New Member
Re: [2008] Tabbed Web Browser with Progress Bar
no you don't understand! It's tabbed!!! It doesn't work the same as a regular web browser!
-
Oct 11th, 2008, 08:54 AM
#5
Re: [2008] Tabbed Web Browser with Progress Bar
 Originally Posted by geekboy124
no you don't understand! It's tabbed!!! It doesn't work the same as a regular web browser!
Of course it does. There's just a bit more to it, getting the right information for the right tab. You still get the information in the same way. Follow the link in my signature to see how I implemented it.
-
Oct 11th, 2008, 09:50 AM
#6
Thread Starter
New Member
Re: [2008] Tabbed Web Browser with Progress Bar
I've seen that post and (no offence but) it doesn't help much. I use a different kind of tabbing method than you do. Here's my tab code:
Code:
Private Sub NewTabToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewTabToolStripMenuItem.Click
Dim wbrowse As New WebBrowserPrintCtrl.WebBrowserPrintCtrl.WebBrowserPrintCtrl
TabControl1.TabPages.Add(i, "Page " & i)
TabControl1.SelectTab(i - 1)
wbrowse.Name = "WebBrowserPrintCtrl1"
wbrowse.Dock = DockStyle.Fill
TabControl1.SelectedTab.Controls.Add(wbrowse)
i = i + 1
End Sub
EDIT:
Also your code gives error messages
Last edited by geekboy124; Oct 11th, 2008 at 09:55 AM.
-
Oct 11th, 2008, 07:59 PM
#7
Re: [2008] Tabbed Web Browser with Progress Bar
Hey,
Regardless of the type of tabbing that you are using, the process is that same as what as been described here. You need to handle the ProcessChanged event of the webbrowser.
Assuming you are wanting a progressbar for the currently selected tab, then you need to handle the ProcessChanged event of the webbroswer contained within that tab. When you add a new tab, also add a reference to a event that will handle the ProcessChanged event, and put any code that you want to carry out in that event.
Also, what "error" messages exactly are you getting in jm's post? I have personally downloaded, built and run the code that he has posted, and it has worked perfectly!
Gary
-
Oct 12th, 2008, 12:36 AM
#8
Re: [2008] Tabbed Web Browser with Progress Bar
A different type of tab code? You have a TabControl with TabPages, each with a WebBrowser control on it. So do I. The differences are minor. If you can't adapt my code to work for you then you haven't tried very hard.
Also, as Gary says, telling us you get errors without telling us what and where is completely pointless.
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
|