Results 1 to 8 of 8

Thread: [2008] Tabbed Web Browser with Progress Bar

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    9

    [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.

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    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
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3
    Frenzied Member obi1kenobi's Avatar
    Join Date
    Aug 2007
    Posts
    1,091

    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

  4. #4

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    9

    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!

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] Tabbed Web Browser with Progress Bar

    Quote 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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    New Member
    Join Date
    Sep 2008
    Posts
    9

    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.

  7. #7
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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