Results 1 to 4 of 4

Thread: [RESOLVED] Vb6 to asp.net (vb)

Threaded View

  1. #1

    Thread Starter
    Lively Member achor's Avatar
    Join Date
    May 2006
    Location
    Porto
    Posts
    123

    Resolved [RESOLVED] Vb6 to asp.net (vb)

    Hello All,

    I think this is a simple question, but I've already searched and I can´t find nothing.

    Code:
    Private Sub txtSearch_GotFocus()
     
        If txtSearch <> "" Then
            SendKeys "{END}"
        End If
    
    End Sub
    Code:
    Private Sub txtSearch_Key_Press(KeyAscii As Integer)
       
            If KeyAscii = 13 Then 
                  cmdSearch_Click
            end if
            
    End Sub
    I want to do something like this in my asp.net page Bu I just can't do it.

    When my txtSearch got focus, select it's Text.
    And when I press 'Enter', it clicks the cmdSearch Button.

    Help please.
    Last edited by achor; Jul 4th, 2007 at 05:17 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width