Results 1 to 4 of 4
  1. #1
    Mokou-Sama's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Akihabara
    Posts
    10,088
    Reputation
    515
    Thanks
    690
    My Mood
    Amused

    Need code for button

    Hi.
    Im makin a browser. Made one in VB6 but it looked like a browser from the past.
    Now I went doing on in VB 10, with a newer inteface and I got everything right except the Go button. Dont know why it dindt work.

    So, I wanna know if anyone knows the code to use the Enter key instead of the Go button.
    And if u know the code for Go button post awell just to know if I am doin things right.
    Thanks in advance!
    Formerly known as gamer4evere









     
    Participated on:
    MPGH GAMING NIGHT 08/03/2015 - Town of Salem



  2. #2
    Blendsoft's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Serbia
    Posts
    47
    Reputation
    20
    Thanks
    9
    My Mood
    Inspired
    for enter, use keydown event.

    Code:
        Private Sub Textbox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Textbox1.KeyDown
            If e.KeyCode = Keys.Enter Then
                'do events
    WebBrowser1.Navigate(Textbox1.text) 'go to url
            End If
        End Sub
    [highlight=vb.net] Private Sub PostThread_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PostThread.Click
    If I_Use_Search = False Then
    MsgBox("Use search before posting new thread!", MsgBoxStyle.Critical, "Error!")
    Else
    Call CreateNewThread(Title, Post)
    End If
    End Sub[/highlight]

  3. #3
    sythe179's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    The internet
    Posts
    660
    Reputation
    15
    Thanks
    1,458
    My Mood
    Paranoid
    or if your lazy...add this to your form1_load event
    (on the basis that your go button is called "Btngo"
    Code:
    Me.AcceptButton = Btngo

  4. #4
    Threadstarter
    Do not Trade - Blacklisted
    Permanently
    MPGH Member
    Mokou-Sama's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Akihabara
    Posts
    10,088
    Reputation
    515
    Thanks
    690
    My Mood
    Amused
    Ok ill try that thx a lot folks!
    Formerly known as gamer4evere









     
    Participated on:
    MPGH GAMING NIGHT 08/03/2015 - Town of Salem



Similar Threads

  1. [Request] Need code for Anti Block chat in Cf
    By MightySaa0d in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 11
    Last Post: 09-24-2011, 02:27 AM
  2. need code for inf. equipment
    By krijnrien in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 7
    Last Post: 09-05-2011, 08:36 AM
  3. Need Code for Special Bullet...
    By GoDZeN in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 02-21-2011, 08:10 AM
  4. I need Codes For warrock PH help me new Coder here
    By windowsxp925 in forum WarRock Philippines Hacks
    Replies: 13
    Last Post: 02-05-2011, 03:14 AM
  5. Code For: Button Click = Web Link
    By Katie_Perry in forum Visual Basic Programming
    Replies: 19
    Last Post: 10-04-2009, 07:49 PM