That's part of the purpose of the ShowDialog is to stop execution in the main code until the dialog is dismissed.
There are several things you can do:
1) Pass the data (or whatever) you need to the dialog on the constructor.
2) Have the dialog call the module to execute the process it needs.
So instead of something like this:
form1.ShowDialog()
PerformCalculations()
You would instead do this:
form1.ShowDialog()
Then in the form Load event of form1:
PerformCalculations()
Hope this helps.
www.insteptech.com ;
msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!