i want to call event procedures (button1_click etc.) on certain conditions
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If e.KeyChar = "A" then 'here i don't know how to call button1_click procedure End If
here is what i want to do :-
whenever any character is inputted to textbox1 then it will call button1_click where i code to print ascii value of the character
ex:- if i input A to textbox1 then should print 65
so i dont know to how to call button1_click event procedure with parametes as "A"