02-01-20, 09:08 PM
(01-01-20, 10:52 PM)محمد كريّم كتب : جرب التعامل مع حدث Leave والذي يشتغل عند الخروج من الأداة
كود :
Private Sub TextBox1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Leave
End Sub
كتبت الكود كذا ولكن يطلع خطاء
Private Sub aa4_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles aa4.Leave
If e.KeyCode = Keys.Enter Then
SearchDataSet("Select * from tb2 where id = " & aa4.Text & " ")
If cur.Count > 0 Then
aa5.Text = cur.Current("geht")
Else
aa5.Text = ""
End If
End If
End Sub
----------------------------------------------------------------------------------------------------------------------
هذا الخطاء
Error 1 'KeyCode' is not a member of 'System.EventArgs'. D:\MyBroj\MyBroj\Form1.vb 276 12 MyBroj
