KeyPress event syntax??

can someone please tell me the full syntax for a KeyPress event (in a textbox); is there a different one for VBA and VB professional 6.0??

I tried to use one fron Word; it didnt work. Can someone please help? I need the textbox to react when I press ENTER.

thank you :)

Comments

  • : can someone please tell me the full syntax for a KeyPress event (in a textbox); is there a different one for VBA and VB professional 6.0??
    :
    : I tried to use one fron Word; it didnt work. Can someone please help? I need the textbox to react when I press ENTER.
    :
    : thank you :)
    :

    Please post in the VB board next time.

    If you need the syntax for VB6's KeyPress event, simply select the control and event from the dropdowns at the top of the code window.

    Or is it that you need the code to know when Enter has been pressed? If so, check to see if KeyAscii is equal to 13.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion