Forum Post: Re: How To Close "wait-for This-object:showdialog()" Programmatically?

  • Thread starter Thread starter Laura Stern
  • Start date Start date
Status
Not open for further replies.
L

Laura Stern

Guest
It sounds like you click a button that is NOT on the dialog. It gets to your event handler and you are about to generate the report, but first you show the dialog. And then you're stuck because you can't do anything else - even run the report. So clearly you cannot close the dialog when the report is done since it never happens in the first place! Is that what you're saying? Is the dialog some kind of status window for the report generation? I presume you made it modal because you don't want anything else happening in the app at the same time? If this is the scenario, you're right - it doesn't work, and I don't know how to make it work either. I think you need to just use Show() rather than ShowDialog on the this in-progress Form and prevent handling of any other events in a different way. For example, maybe you can set the Enabled property on other forms/controls to false while the report is being generated.

Continue reading...
 
Status
Not open for further replies.
Back
Top