jaLouden
asked on
Updating a Showdialog Form Dymanically
Hi All,
I'm in the midst of writing a issues tracking app. I've got to the point where all information is captured and ready to be written back to the database, or copied to a file share. I was hoping to display a small form that tracks the progress of the issue save, that would prevent the use closing the app till the save was confirmed.
I've created the progress form programmatically and displayed it by showdialog. The issue I've run into is rather a basic one, while the dialog form in being displayed I cannot do anything else. I believe there are two ways forward (happy to be told of more) 1) Create a background thread to perform each of the tasks that need doing, 2) Don't use the showdialog method, use the normal form visible method and disable the form control box.
Any suggestions on the best way forward?
Cheers
Jl
I'm in the midst of writing a issues tracking app. I've got to the point where all information is captured and ready to be written back to the database, or copied to a file share. I was hoping to display a small form that tracks the progress of the issue save, that would prevent the use closing the app till the save was confirmed.
I've created the progress form programmatically and displayed it by showdialog. The issue I've run into is rather a basic one, while the dialog form in being displayed I cannot do anything else. I believe there are two ways forward (happy to be told of more) 1) Create a background thread to perform each of the tasks that need doing, 2) Don't use the showdialog method, use the normal form visible method and disable the form control box.
Any suggestions on the best way forward?
Cheers
Jl
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Either use the standard Show or move the code to the form that is displayed with ShowDialog.
It's not completely true that you cannot do anything while a form is displayed as a dialog. The code in the form itself is running.