View Single Post
  #1 (permalink)  
Old February 3rd, 2004, 12:33 PM
PaulG PaulG is offline
Registered User
Join Date: Feb 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default KeyPress Event in VB different from VBA

I am porting my VBA Outlook code to VB6 and run into problems with the KeyPress Event; this does not work in VB6 for me:

Private Sub Text1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
    MsgBox "test"
End Sub

I get this message:
Procedure declaration does not match description of event or procedure having same name

What am I doing wrong?


Reply With Quote