1. Jeong Hwan Jang
  2. PowerBuilder
  3. Wednesday, 13 July 2022 01:51 AM UTC

Hi, everyone.

 

I made a application using GetOpenFileName Window API. (Powerbuilder 2019 R3)

It is working well. But the dialog is still opened even the app was closed, if I didn't close manually the dialog.

How can I close the dialog when close the app.

 

I'm looking forward to your help.

Thanks.

 

 

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 13 July 2022 02:27 AM UTC
  2. PowerBuilder
  3. # 1

Hi Jeong;

  The key is to make the dialog "modal" and link it to your application. You can do this by setting the hwndOwner property of the OPENFILENAME structure you pass into the function to the HWND of your main application window.

HTH

Regards ... Chris 

Comment
  1. Jeong Hwan Jang
  2. Wednesday, 13 July 2022 05:09 AM UTC
I solved it.



Thanks to you Chris!



  1. Helpful
  1. John Fauss
  2. Wednesday, 13 July 2022 05:17 AM UTC
Jeong - Would you please take a moment and kindly mark this issue as resolved? Thank you!
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 13 July 2022 12:01 PM UTC
That is great news Jeong ... Thanks for letting us know! :-)
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.