Adblock breaks this site

VB 2008 Help PleasE ??

Discussion in 'Programming General' started by tomanderson12, Jan 21, 2008.

  1. tomanderson12

    tomanderson12 Member

    Joined:
    Jan 21, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0
    VB 2008 Help PleasE ??

    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
     
  2. Stuart

    Stuart Guru
    Banned

    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10
    VB 2008 Help PleasE ??

    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
    
     
  3. tomanderson12

    tomanderson12 Member

    Joined:
    Jan 21, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0
    VB 2008 Help PleasE ??

    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
     
< Freddy1990's Advanced World Generator v2.40 | help a noob... >


 
 
Adblock breaks this site