You need to dispose the modal form outside of itself. The idea is the calling program has ownership of the form and controls when it is disposed. That way it can reference form when the user closes it to get any results back.
>Cathi,
>Thanks very much. I'll try that when I get back. I had avoided taking that approach because I felt it would slow things down to do an extra query in the calling program.
>Just for my info, how would a modal program close itself if not with the close method? I tried having it call its dispose method instead of the close method and that locked up the app.
>Thanks.
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi