How to detect application made by PowerBuilder from C# application RRS feed

  • Question

  • This question is regarding communication between process built in powerbuilder and C#.

    I need to access DB when powerbuilder application saves some setting value.

    To do this, which way is the best in C#?

    Once I figure it out, I will request this feature to powerbuilder programmer.

    Can anybody who has experience powerbuilder&C# give me some idea?

    Tuesday, April 30, 2019 6:00 PM


All replies

  • Hi Jeff0803,

    Thank you for posting here.

    >>need to access DB when powerbuilder application saves some setting value.

    To do this, which way is the best in C#?

    I am not good at powerbuilder. But if you want to do that, you could return a value like bool when powerbuilder application saves some setting value. And you could do something according to the bool value.

    For further help of powerbuilder, you could ask in powerbuilder forum.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    • Marked as answer by Jeff0803 Wednesday, May 1, 2019 1:46 PM
    Wednesday, May 1, 2019 2:34 AM
  • My question was to notify from PowerBuilder(or other application) to C# application.

    C# can access DB to find any change but it's not efficient.

    So PowerBuilder should notify C# app and C# will access DB at that only time.

    This is my intention

    Wednesday, May 1, 2019 1:46 PM
  • Hi,

    You can do that by using the Send() ( PowerScript function from PowerBuilder. You might also require the FindWindowA() ( windows function to get the handle of the window you want to send the message to. This is useful if both your PowerBuilder application and your C# application are running on the same computer at the same time. But, if that's not your case, then you could set a value on a DB table, and have your C# application check for a change on that value periodically.

    You can post your PowerBuilder tech how-to/advice questions to the Appeon Community website too: Posted questions on the Appeon Community may be responded by Appeon support staff, PowerBuilder MVPs, or other product users from all over the world.

    Hope this helps!


    Thursday, May 2, 2019 2:06 PM
  • Thanks for answer.

    Yes both application(powerbuilder & C#) runs in one computer.

    I'll have powerbuilder developer to try Send() and I'll try FindWindowA().

    Thanks gain.

    Monday, May 6, 2019 2:02 PM