hi
u can use the keypress event ans use enter key ascii number tat i.e 13
Amna
Private Sub frm_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
If (e.KeyChar = Microsoft.VisualBasic.ChrW(13)) Then
Me.close()
End if
End Sub
hi
u can use the keypress event and use ENTER key ascii number i.e 13 hope it will solve ur problem....
bye
Amna
Private Sub frm_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
If (e.KeyChar = Microsoft.VisualBasic.ChrW(13)) Then
Me.close()
End if
End Sub
Actually, I think I spoke too soon - This is a web application - unless I am missing soething here I can't import the system.windows.forms namespace....
This won't work for me....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.