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

VB 2008 Help PleasE ??

tomanderson12

Member
Joined
Jan 21, 2008
Sythe Gold
0
Messages
53
Hey, im kinda of new to VB i started with 2008 none of the others and im trying to make a web browser for my first program, everything works apart from i have no idea about the code for a ComboBox as the URL box and only to go to that site when i hit the Go Button please someone help ??

Thanks
 
I believe you want something along the lines of this.

Code:
    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        WebBrowser1.Navigate(ComboBox1.Text)
        For Each Site As String In ComboBox1.Items
            If (Site = ComboBox1.Text) Then
                ' The website has been found on the list and exits button click
                Exit Sub
            End If
        Next
        ' Adds website to combobox list
        ComboBox1.Items.Add(ComboBox1.Text)
    End Sub
 
Thanks Stuart, Thats exatcly what i wanted,:D


But one more thing how would i go about adding a progress bar to the bottom ?? what code would that need

Thanks in Advance
 
Runescape Gamblingrunescape gambling
Back
Top