Need help making my web browser more advanced. 08-20-2011, 06:52 AM
#1
I know it is pretty ugly now, but I will be making it better once I get the ground work done.
Here is my code for the browser:
and here is my picture for it:![[Image: 2zf98ww.jpg]](http://i53.tinypic.com/2zf98ww.jpg)
I have a couple of questions though.
1.) How (if there is a way) can I set it to where it has a home page that will be the same for everyone that downloads it.
2.) Say that I have a huge proxy list in the form of ip:port, is there a way that I can make it to where when someone connects to the internet using my browser, it would pick a random proxy from that list?
3.) How exactly do I change the icon in the top left corner? I tried to save one picture as it and I get the error "argument "picture" must be a picture that can be used as an icon."
Here is my code for the browser:
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs)
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.GoBack()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.GoForward()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
WebBrowser1.Refresh()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
WebBrowser1.Stop()
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
WebBrowser1.Navigate(TextBox1.Text)
End Sub
Private Sub StatusStrip1_ItemClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles StatusStrip1.ItemClicked
End Sub
Private Sub WebBrowser1_ProgressChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs)
Dim p, d, t As Integer
d = e.CurrentProgress
t = e.MaximumProgress
If t < 1 Then t = 1
p = Int(d / t) * 100
If p > 100 Or p < 0 Then Exit Sub
ToolStripProgressBar1.Value = p
End Sub
End Class
and here is my picture for it:
![[Image: 2zf98ww.jpg]](http://i53.tinypic.com/2zf98ww.jpg)
I have a couple of questions though.
1.) How (if there is a way) can I set it to where it has a home page that will be the same for everyone that downloads it.
2.) Say that I have a huge proxy list in the form of ip:port, is there a way that I can make it to where when someone connects to the internet using my browser, it would pick a random proxy from that list?
3.) How exactly do I change the icon in the top left corner? I tried to save one picture as it and I get the error "argument "picture" must be a picture that can be used as an icon."