• Log in or sign up for an account here: https://www.sythe.org/login

Progress Bar Help

  • Thread starter Thread starter Monster Ahhhhh
  • Start date Start date
M

Monster Ahhhhh

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

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.
 
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 =) .
 
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.
 
thanks!!! ive been looking evrywer 4 tabs!
(i dont think this was the topic to say but ok)
 
its tabs only. you need vb 2008
 
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.
 
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.
 
vb2008 is really good. everything tht 2005 has is in 2008. Ive downloaded recently.
 
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.
 
Runescape Gamblingrunescape gambling
Back
Top