ApplicationEX.ShowDialog Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using version 1.3 of the opencf framework (I love it!!) to catch windows
enter events. Everything is working great except I cannot get a return value
with DialogResult. I know in order to add the message filter to the form it
must be shown by using ApplicationEx.ShowDialog.

Here's a snippet:

if (ApplicationEx.ShowDialog(form_Next) == DialogResult.OK)
{
MessageBox.Show("Hey, I'm back");
}

Am I misusing ApplicationEx.ShowDialog? Is there another way to get a
return from ApplicationEx.ShowDialog?

Thanks in advance!
Paula
 
Are you telling it to Dispose the dialog when done? I made a bug fix last
night (but I would expect an ObjectDisposedException if you were hitting
it).

-Chris
 
I am calling form_Next .Dispose() when I come back from the ShowDialog but it
never hits the code.

When the button is pressed to go back to the calling form, the code
DialogResult = DialogResult.OK is executed, but the modal form does not go
away and I don't get back to the calling form code.

Thanks a bunch for your help!
 
At this ppint all I can suggest is step into the ApplicationEx code yourself
and use the Locals window to see what's going on.

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
 
Please do! We're getting ready for a new release, and any fixes we can
squeak in are appreciated.

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
 
Back
Top