Page 1 of 2

Webbrowser Features Thread (Updated Daily)

Posted: Thu Apr 14, 2011 10:56 pm
by anthonygz
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
Code: Select all
WebBrowser1.Navigate(comboboxname.Text)
Ok Guys here is Code to Make and View Bookmarks...

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
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
The "BookMarks" before Listbox stands for the New Form ;)

BookMarks Form Load Code:
Code: Select all
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
Listbox DoubleCLick Event Code:
Code: Select all
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
Thats a really easy Code,but it can be done more complex!

Thread updated daily with user submitions

Re: Webbrowser Features Thread (Updated Daily)

Posted: Thu Apr 14, 2011 11:07 pm
by Axel
A webbrowser is so overused , its just not professional anymore
but okay

bookmarks
rss feeds
list elements
edit elements
history
save page
source viewer
password saver
homepage

....

Re: Webbrowser Features Thread (Updated Daily)

Posted: Fri Apr 15, 2011 12:35 am
by zachman61
Axel wrote:
A webbrowser is so overused , its just not professional anymore
but okay

bookmarks
rss feeds
list elements
edit elements
history
save page
source viewer
password saver
homepage

....
Its mean't so you list features and have the code for it.

Re: Webbrowser Features Thread (Updated Daily)

Posted: Fri Apr 15, 2011 12:45 am
by Axel
zachman61 wrote:
Axel wrote:
A webbrowser is so overused , its just not professional anymore
but okay

bookmarks
rss feeds
list elements
edit elements
history
save page
source viewer
password saver
homepage

....
Its mean't so you list features and have the code for it.
I'm doing what the title says lol not what the author does :P

Re: Webbrowser Features Thread (Updated Daily)

Posted: Fri Apr 15, 2011 11:03 pm
by Napster1488
I could Post alot Codes for a Very Advanced WebBrowser,
in the moment i am doing a WebBrowser for a Girl which includes such a Big Code its the Biggest Code i ever saw and written.

Re: Webbrowser Features Thread (Updated Daily)

Posted: Fri Apr 15, 2011 11:22 pm
by Agust1337
Line count :P?

Re: Webbrowser Features Thread (Updated Daily)

Posted: Sat Apr 16, 2011 12:03 am
by Napster1488
I dont know how much Lines i have with all Forms but there are a huge of Lines of Code ;)
I already Done Browser with Webkit,Gecko and IE Browser maybe i gonna post here some Codes ;)

Re: Webbrowser Features Thread (Updated Daily)

Posted: Sat Apr 16, 2011 12:07 am
by RyanTheCoder
Napster1488 wrote:
I could Post alot Codes for a Very Advanced WebBrowser,
in the moment i am doing a WebBrowser for a Girl which includes such a Big Code its the Biggest Code i ever saw and written.
i was going to say something. but decided not to to be nice.

Re: Webbrowser Features Thread (Updated Daily)

Posted: Sat Apr 16, 2011 12:09 am
by Axel
Napster1488 wrote:
I dont know how much Lines i have with all Forms but there are a huge of Lines of Code ;)
I already Done Browser with Webkit,Gecko and IE Browser maybe i gonna post here some Codes ;)
Trident not IE :P

Use this to count your lines


This file is hosted off-site.

Re: Webbrowser Features Thread (Updated Daily)

Posted: Sat Apr 16, 2011 12:12 am
by Napster1488
Ok Guys here is Code to Make and View Bookmarks...

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
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
The "BookMarks" before Listbox stands for the New Form ;)

BookMarks Form Load Code:
Code: Select all
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
Listbox DoubleCLick Event Code:
Code: Select all
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
Thats a really easy Code,but it can be done more complex!