event has not the same signature ??

  • Thread starter Thread starter Carsten Lahme
  • Start date Start date
C

Carsten Lahme

Hi NGs,

I'm very new to Visual Studio .NET and have only litle expirience with
Visual Basic 6.
I'm starting to write a AddIn and just finished the wizzard and adding
a reference to Outlook 9.0 library.

with this line I want to fire the ItemSend event from Outlook:

Private Sub GoOutlook_itemsend(ByVal item As Object, ByVal cancel As
Boolean) Handles GoOutlook.ItemSend

It says ItemSend hasn't the same Signature and therefor cannot be
handled.

What does this mean?
What do I have to do to get it work?

thanks for help
Carsten
PS: please do not post any reference to local MSDN-Files. I do not
have that.
 
Hi NG's

I found it:
Cancel has to be ByRef.
now it works.

Private Sub GoOutlook_itemsend(ByVal item As Object, ByVal cancel As
Boolean) Handles GoOutlook.ItemSend



grts

CL
 
Back
Top