Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Event handling from third-party non-visual .NET assemblies

With the advent of PB15, we're taking another look at the .NET versions of Powerbuilder. We have one problem which has always been a show-stopper for us. Perhaps now there's more experience with the product, someone knows how to get this working.

We have a 3rd party non-visual .NET assembly which generates asynchronous events. In C#, when you create the object, you pass it an event handling routine:

   ThirdPtyObject.Session session = new ThirdPtyObject.Session(sessionOptions, new EventHandler(MyEventProcessing));

Elsewhere within the code you define the event processing which takes place when this event is triggered:

   static public void MyEventProcessing(ThirdPtyObject.Event eventObj, ThirdPtyObject.Session session)

   {

   // ... your event processing code goes here

   }

How do you code this up in Powerbuilder .NET? Can anybody point me to some documentation or an example? Or is this like the old non-visual COM objects, which you need to wrap as a visual ActiveX before you can code the events?

Many thanks in advance for any assistance.

Former Member
Not what you were looking for? View more on this topic or Ask a question