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:
Private Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then '...YOUR PROCEDURE CALL HERE Dim variable_abc variable_abc = Text1.Text Dim variable_def variable_def = Text2.Text Dim variable_ghi variable_ghi = Text3.Text 'MsgBox "textbox data: " & variable_abc Dim sHTML As String Dim sURL As String 'Create URL sURL = "http://localhost/send.php?sessionkey=" & _ gstrSomething & "&text=" & variable_abc & "&site=" & variable_ghi sHTML = Inet1.OpenURL(sURL) 'returns page source MsgBox "textbox data2: " & sURL Text1.Text = "" WebBrowser1.Refresh End If End Sub




Reply With Quote