how do i make a keypress function like with api ,ex
is it somthing like this
Public declara function keypress(keyascii as integer)
somthing like that
Printable View
how do i make a keypress function like with api ,ex
is it somthing like this
Public declara function keypress(keyascii as integer)
somthing like that
It's called events, and you don't use APi's to declare them, you use delcare them with Event:
This is an example how you can raise events with a class containing a textbox.Code:Private WithEvents tb As TextBox
Public Event Keypress(KeyAscii As Integer)
Private Sub tb_KeyPress(KeyAscii As Integer)
'To raise the event use raiseevent
RaiseEvent Keypress(KeyAscii)
End Sub
thanks man , sorry i havnt e-mailed you back