translate ItemEvent from C# to VB

Emanuele Croci

Dear all,



how can translate this C# command into VisualBasic?



[font=comic sans ms,cursive]SwissAddonFramework.B1Connector.GetB1Connector().Application.ItemEvent += new SAPbouiCOM._IApplicationEvents_ItemEventEventHandler(application_ItemEvent);[/font]





I tryed this:

[font=comic sans ms,cursive]SwissAddonFramework.B1Connector.GetB1Connector().Application.ItemEvent = New SAPbouiCOM._IApplicationEvents_ItemEventEventHandler(AddressOf application_ItemEvent)[/font]



but I have a run-time error message: "cannot find the public member 'ItemEvent' into 'ApplicationClass'"



Can someone help me, please?



Best regards



Emanuele

Emanuele Croci

Solution:



[font=comic sans ms,cursive]SwissAddonFramework.B1Connector.GetB1Connector().Application.ItemEvent, AddressOf application_ItemEvent[/font]





Best regards



Emanuele

Paolo Manfrin

Thanks for sharing the solution Emanuele! :-)

Regards,

paolo
0

Comments

0 comments

Please sign in to leave a comment.

Didn't find what you were looking for?

New post