Hello everyone,
I've added a small code to OnKeyPress event of a Textbox and it works correct, but I need to assign it on all forms and all Textboxes of my program :
I can put it on each TextBox manually, but it takes many time to accomplish.
Do you think there is a better way to do it?
I've added a small code to OnKeyPress event of a Textbox and it works correct, but I need to assign it on all forms and all Textboxes of my program :
Code:
Private Sub txtCustomer_KeyPress(KeyAscii As Integer)
If KeyAscii = 1740 Then
KeyAscii = 1610
End If
End Sub
I can put it on each TextBox manually, but it takes many time to accomplish.
Do you think there is a better way to do it?