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

Ultermate Webbrowser - Loads Of Features

rattytatt50

Member
Joined
Oct 26, 2007
Sythe Gold
0
Messages
67
I was bored the other day so i decided to make a webbrowser.
Im sorry to be a bit short on this but ill give you a run through.

Features:
Boot up screen dectecting if files exsist
If the user has a pass a locked panel requires a username and password - essensial for security!
Working favourites - with add
Scientific (sortof) calculator
Whiteboard (with eraser)
HTML source
Clock
Google, live, yahoo and search.com search
Page content download
Name detector
 
needs a lot of work and some extra stuff that isn't needed, but its not bad.
 
if you need any help with adding more features to make it more like a 'professional' web browser i would be glad to help.
 
ooo nice, with the search thing u might wanna add an array so u can only select one and not all, unless ur gonna add tabs
 
I am also trying to make my own web browser, but i cannt find out how to do one thing.

When the form loads, I have set the browser control to open my personal site. When it loads, it loads the site but doesn't display the url of the site in the combobox which I have made for the address bar.

I was wondering, what is the code for grabbing the url of a page and displaying it in the combobox?
 
I am also trying to make my own web browser, but i cannt find out how to do one thing.

When the form loads, I have set the browser control to open my personal site. When it loads, it loads the site but doesn't display the url of the site in the combobox which I have made for the address bar.

I was wondering, what is the code for grabbing the url of a page and displaying it in the combobox?

this is very simple, go to the web browsers documentcompleted property and add this code for the combobox.

Code:
combobox1.items.add(webbrowser1.url)

not sure what this is going to be used for, but if you plan on using this to navigate back to previous sites then what you would want to do is for the combobox's selectedindexchange property add this code.

Code:
webbrowser1.navigate(combobox1.selecteditem)

if you have any other questions or i haven't completely answered your question i'll be glad to give my best answer.
 
That has told the browser to list the site when you click the combo box, however, when a site loads or a page changes from clicking on a link, the text does not update, like on other browsers.

The reason I am struggling with this is because I am used to VB6, as that is what I learned at college.

Anyway, i think the VB6 code was:
Code:
combobox1.caption = webbrowser1.locationurl

This, however doesnt work doe to .NET framework being introduced and I am wanting to know the new version of this code, as the code upgrade doesn't understand it.


EDIT: Found an article on MSDN and here is the code they gave, which seems to work for me.

Code:
' Updates the URL in TextBoxAddress upon navigation.
    Private Sub webBrowser1_Navigated(ByVal sender As Object, _
        ByVal e As WebBrowserNavigatedEventArgs) _
        Handles WebBrowser1.Navigated

        txtAddress.Text = WebBrowser1.Url.ToString()

    End Sub

Hence, it was the ToString() that I didn't know that I needed to use. This code has also got me to switch from combobox to textbox.
 
That has told the browser to list the site when you click the combo box, however, when a site loads or a page changes from clicking on a link, the text does not update, like on other browsers.

The reason I am struggling with this is because I am used to VB6, as that is what I learned at college.

Anyway, i think the VB6 code was:
Code:
combobox1.caption = webbrowser1.locationurl

This, however doesnt work doe to .NET framework being introduced and I am wanting to know the new version of this code, as the code upgrade doesn't understand it.


EDIT: Found an article on MSDN and here is the code they gave, which seems to work for me.

Code:
' Updates the URL in TextBoxAddress upon navigation.
    Private Sub webBrowser1_Navigated(ByVal sender As Object, _
        ByVal e As WebBrowserNavigatedEventArgs) _
        Handles WebBrowser1.Navigated

        txtAddress.Text = WebBrowser1.Url.ToString()

    End Sub

Hence, it was the ToString() that I didn't know that I needed to use. This code has also got me to switch from combobox to textbox.

i apologize for not understanding what you were asking, i would suggest you continue to use a combobox for you can do the same thing along with showing other sites you have visited upon typing with ease.
 
Member of the Month Winner
Sythe's 10th Anniversary
Spelling correction: Alternate.

Loads of features = Firefox or better ;) Still, its a good newby project I guess.
 
can you send me the code of Favorites in my E-mail my e-mail address is [email protected] plz i want to add the Favorite Function in my browser. plz plz plz....
 
uh yeah - sorry, i rebooted my pc a little while ago and i forgot to save the webbrowser. Ill get the code soon. Im making a new thing atm- btw
Gregz i think do u mean this by any chance?
Code:
    Private Sub WebBrowser1_Navigating(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles WebBrowser1.Navigating
        If WebBrowser1.ReadyState = WebBrowserReadyState.Complete Then
            txtUrl.text = WebBrowser1.Url.AbsoluteUri
        End If
    End Sub
 
Runescape Gamblingrunescape gambling
Back
Top