Adblock breaks this site

Progress Bar Help

Discussion in 'Programming General' started by Monster Ahhhhh, Nov 20, 2007.

  1. Monster Ahhhhh

    Monster Ahhhhh Guest

    Referrals:
    0
    Progress Bar Help

    Hello everone I havnt been on sythe for a very long time now but I need some help. I am updating my web browser way beyond what my first one was. My browser is made in vb 2008 and all I need left is a progress bar. I tried poking at things with a stick but I have not the nearest clue on how to set one up in this newer visual basics. If you could help I would be most gratefull. Sorry if in wrong forum somebudy said this didnt belong in visual basic and belonged in .net.
     
  2. skate4lifee

    skate4lifee Active Member

    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0
    Progress Bar Help

    since there isn't a vb 2008 forum you should not be scolded nor have to apologize for possibly posting in the wrong section. i've never worked with vb 2008 but i'm sure its similar to vb 2005 so i'll give you some vb 2005 code that uses a progressbar to work with a web browser. i'm sure you won't have much trouble conversion if any converting needs to be made.

    first you want to go to the web browsers progresschanged event then add this code:
    Code:
    if e.maximumprogress <> 0 and _
                      e.maximumprogress >= e.currentcrogress Then
    
                progressbar1.value = convert.toint32( _
                    100 * e.currentprogress / e.maximumprogress)
            end if
     
  3. rattytatt50

    rattytatt50 Member

    Joined:
    Oct 26, 2007
    Posts:
    67
    Referrals:
    0
    Sythe Gold:
    0
    Progress Bar Help

    Code:
          
      With ProgressBar1
                .Minimum = 1
                .Maximum = 10000
                .Value = 1
                .Step = 1
                ProgressBar1.Visible = True
                For i As Integer = .Minimum To .Maximum
                    .PerformStep()
                Next i
    
            End With
            If WebBrowser1.ReadyState Then
                ProgressBar1.Visible = False
            End If 'end of progress bar
    
    My way will make the progress bar dissapear when inactive.
     
  4. skate4lifee

    skate4lifee Active Member

    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0
    Progress Bar Help

    i would have told him that if he wanted. =/

    another way you can make the progress bar visible and invisible is by using the webbrowser's navigated property and you can say
    Code:
    progressbar1.visible = true
    and then in the web browsers and then on the web browser's document complete property you can add
    Code:
    progressbar1.value = 0
    progressbar1.visible = false
    i realize your way is easier but i gave an alternative.
     
  5. Monster Ahhhhh

    Monster Ahhhhh Guest

    Referrals:
    0
    Progress Bar Help

    Thank you very much i have been dying to have a progress bar. Now all i have to do is add tabs which is under way. I cant figure out how to get info from the web browsers url into the tabs but this will refresh the tabs at same time so im gonna use the name of site for tab name (i saw that some were while browsing the commands) and have the the tabs just change state of visibility of the 10 web controls. Is this a ok way to do this or is there a better way. Also you should download express edition of vb 2008 you may like it this is a weird change though from vb 6 =) .
     
  6. skate4lifee

    skate4lifee Active Member

    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0
    Progress Bar Help

    making the tabs the name of the website is pretty simple. first, go to the the webbrower's documentitlechanged then add this code

    Code:
    tabpage1.text = webbrowser1.documentcomplete
    this is for vb2005, but i'm pretty sure this would work in vb 2008.
     
  7. rattytatt50

    rattytatt50 Member

    Joined:
    Oct 26, 2007
    Posts:
    67
    Referrals:
    0
    Sythe Gold:
    0
    Progress Bar Help

    thanks!!! ive been looking evrywer 4 tabs!
    (i dont think this was the topic to say but ok)
     
  8. skate4lifee

    skate4lifee Active Member

    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0
    Progress Bar Help

    after helping you i am tempted to install visual basic 2008 express. hehe
     
  9. diablo rg2

    diablo rg2 Member

    Joined:
    May 26, 2007
    Posts:
    86
    Referrals:
    0
    Sythe Gold:
    0
    Progress Bar Help

    its tabs only. you need vb 2008
     
  10. rattytatt50

    rattytatt50 Member

    Joined:
    Oct 26, 2007
    Posts:
    67
    Referrals:
    0
    Sythe Gold:
    0
    Progress Bar Help

    i do have vb8
     
  11. skate4lifee

    skate4lifee Active Member

    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0
    Progress Bar Help

    vb 2005 has the tab control as well as vb 2008.
     
  12. Monster Ahhhhh

    Monster Ahhhhh Guest

    Referrals:
    0
    Progress Bar Help

    I was making my own style of tabs to save space. Ive made them out of a drop down in the tool strip (vb 2008) i have never tried vb 2005 and till latly it had been scar, java, vb 6 and a few others.
     
  13. skate4lifee

    skate4lifee Active Member

    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0
    Progress Bar Help

    interesting approach, i'm sure if you work with the tab control a little bit you will get the hang of it. just make a separate project a very basic web browser and add the tab control and you will be amazed at what you may learn.
     
  14. rattytatt50

    rattytatt50 Member

    Joined:
    Oct 26, 2007
    Posts:
    67
    Referrals:
    0
    Sythe Gold:
    0
    Progress Bar Help

    vb2008 is really good. everything tht 2005 has is in 2008. Ive downloaded recently.
     
  15. Monster Ahhhhh

    Monster Ahhhhh Guest

    Referrals:
    0
    Progress Bar Help

    Whats the diffrence between vb 6 and vb 05/vb 08 ive been working with both of them there seems to be little diffrence. The only notices for vb 6 vs vb 08 i have seen is better display of things and made things look better. Please tell me i wonder if i was missing somthing.
     
< Chicktionary Client - By Me! | ISO MASSIVE HELP VB 08 program >


 
 
Adblock breaks this site