A
Adrian
hi
in vb6 there was an option to set a button as the default action if enter is
hit, this option does not seem to be in dotnet.
I have a textbox to type in and I want the user to be able to hit the button
or hit enter/return to kick off the button action.
I have tried the following to see if I can capture the key stroke and then
act upon it, but it shows the code for normal keys but not the return key?
Private Sub txtSend_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles txtSend.TextChanged
MsgBox(Asc(txtSend.Text.Substring(txtSend.Text.Length - 1, 1)))
in vb6 there was an option to set a button as the default action if enter is
hit, this option does not seem to be in dotnet.
I have a textbox to type in and I want the user to be able to hit the button
or hit enter/return to kick off the button action.
I have tried the following to see if I can capture the key stroke and then
act upon it, but it shows the code for normal keys but not the return key?
Private Sub txtSend_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles txtSend.TextChanged
MsgBox(Asc(txtSend.Text.Substring(txtSend.Text.Length - 1, 1)))