cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos


Hi,

Have a look at this :

Consume .NET Events

Regards.

Abdallah.

Former Member
0 Kudos

Hi Solent;

  FYI: The PB v15 release will be focused on PB Classic features and not PB.Net. Also, there is no long term road-map for PB so, its hard to say what SAP will do with PB.net after v15. Maybe <hint> someone from SAP can jump in here </hint>.

Regards ... Chris