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

Help me please

tomanderson12

Member
Joined
Jan 21, 2008
Sythe Gold
0
Messages
53
ok im working on a webbrowser as some of you might be aware i want a label saying "Done" to appear when the loading bar is finished like internet explorer does, and how can i make it store sites even when you close the program down
? im talking about vb 08 btw

Thanks
 
its very easy to change the text, for the web browsers statustextchanged property with a label add this simple line of code.

Code:
label1.text = webbrowser1.statustext
 
not to try and be mr.mod or something, but vb08=.net..please post it there, would avoid people posting you vb6 code.

for the sites, on navigate you could have it store the website address to a string, or add them to a listview/listbox.

for listview heres howto use listview for it.

load:
Code:
            Dim sr As IO.StreamReader = New IO.StreamReader("C:\filenamehere.txt")
            While sr.Peek >= 0 ' or sr.endofstream=false
               ListView1.Items.Add(sr.ReadLine) 'will add the txt to a listview. 
            End While
  sr.Close()

save:
Code:
            Dim sw As IO.StreamWriter = New IO.StreamWriter("C:\filenamehere.txt")
            For i As Integer = 0 To ListView1.Items.Count - 1
                If i = ListView1.Items.Count - 1 Then
                    sw.Write(ListView1.Items(i).Text)
                Else
                    sw.WriteLine(ListView1.Items(i).Text)
                End If
            Next
            sw.Close()



progress bar: not sure what you mean, nor what you already have done.(progress bar already work?)
 
vb08=.net..please post it there, would avoid people posting you vb6 code.

answers were vb.net. (at least mine was)


progress bar: not sure what you mean, nor what you already have done.(progress bar already work?)

he was talking about a status label and i already answered the question. both questions had been answered, but you provided a smaller answer for loading and saving the websites with a listview.

by the way, love your signature.
 
duelarena.gg
Back
Top