VB 2008 Help PleasE ??

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

VB 2008 Help PleasE ??
  1. Unread #1 - Jan 21, 2008 at 5:20 AM
  2. tomanderson12
    Joined:
    Jan 21, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0

    tomanderson12 Member

    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
     
  3. Unread #2 - Jan 21, 2008 at 9:55 AM
  4. Stuart
    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10

    Stuart Guru
    Banned

    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
    
     
  5. Unread #3 - Jan 21, 2008 at 11:09 AM
  6. tomanderson12
    Joined:
    Jan 21, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0

    tomanderson12 Member

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

Users viewing this thread
1 guest


 
 
Adblock breaks this site