[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. :)