Webbrowser Features Thread (Updated Daily)
Posted: Thu Apr 14, 2011 10:56 pm
This is just a thread were people can put there code in so people can make a better webbrowser
Just put the name of the webbrowser addon/program and how to do it / etc.
#1 Navigate From Combobox
1. Go to the combobox you want to use
2. at the right go to selectedindexchanged
3. add this
We need a Special Form with a Listbox,set Multiselect to "False" and make Dock to "Fill"
And a Bookmark Button in the Browser.
BookMark Button Code:
BookMarks Form Load Code:
Thread updated daily with user submitions
Just put the name of the webbrowser addon/program and how to do it / etc.
#1 Navigate From Combobox
1. Go to the combobox you want to use
2. at the right go to selectedindexchanged
3. add this
Code: Select all
Ok Guys here is Code to Make and View Bookmarks...WebBrowser1.Navigate(comboboxname.Text)
We need a Special Form with a Listbox,set Multiselect to "False" and make Dock to "Fill"
And a Bookmark Button in the Browser.
BookMark Button Code:
Code: Select all
The "BookMarks" before Listbox stands for the New Form ;)Private Sub BookMarkButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BookMarkButton.Click
BookMarks.ListBox1.Items.Add(WebBrowser1.Document.Url.ToString)
My.Computer.FileSystem.WriteAllText(Application.StartupPath & "/bookmarks.urls", WebBrowser1.Document.Url.ToString & vbNewLine, True)
End Sub
BookMarks Form Load Code:
Code: Select all
Listbox DoubleCLick Event Code:
Private Sub BookMarks_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ListBox1.Text = My.Computer.FileSystem.ReadAllText(Application.StartupPath & "/bookmarks.urls")
End Sub
Code: Select all
Thats a really easy Code,but it can be done more complex!Private Sub ListBox1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.DoubleClick
If ListBox1.SelectedItem = "" Then
Else
WebBrowser1.Navigate(ListBox1.SelectedItem.ToString)
Me.Close()
End If
End Sub
Thread updated daily with user submitions