I have a textbox inside frame and want to capture enter key using the code below but it never works. I had the same textbox outside frame and it was working !! could any one tell me how to fix this problem?thanks


1 Code:
  1. Private Sub Form_KeyPress(KeyAscii As Integer)
  2. If KeyAscii = 13 Then
  3.     '...YOUR PROCEDURE CALL HERE
  4.    
  5. Dim variable_abc
  6. variable_abc = Text1.Text
  7.  
  8. Dim variable_def
  9. variable_def = Text2.Text
  10.  
  11. Dim variable_ghi
  12. variable_ghi = Text3.Text
  13. 'MsgBox "textbox data: " & variable_abc
  14.  
  15. Dim sHTML As String
  16. Dim sURL As String
  17.  
  18. 'Create URL
  19. sURL = "http://localhost/send.php?sessionkey=" & _
  20. gstrSomething & "&text=" & variable_abc & "&site=" & variable_ghi
  21.  
  22. sHTML = Inet1.OpenURL(sURL) 'returns page source
  23. MsgBox "textbox data2: " & sURL
  24. Text1.Text = ""
  25.  
  26. WebBrowser1.Refresh
  27. End If
  28.  
  29. End Sub