event has not the same signature ??

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.
 
C

Carsten Lahme

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top