Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialog form issue 1

Status
Not open for further replies.

rjoubert

Programmer
Joined
Oct 2, 2003
Messages
1,843
Location
US
I am in the process of developing a VB.NET 2005 windows application. In a few areas of the application, I have to auto-generate several records, which can take up to a few minutes. So, I am popping up a dialog form with a progress bar during these operations. I have also managed to get the BackgroundWorker control involved so the progress bar actually shows up and moves. The auto-generation of records is running in a background process. So far so good.

NOW...I have set the dialog form to stay on top of everything, but the user can still click on the main application window and switch forms. If they were to do this, my application would error out, as it's expecting a certain form to still be open. How can I prevent the user from being able to do anything in the main application window? Thanks...
 
use showdialog instead of show to open the form.


Christiaan Baes
Belgium

My Blog
 
Wow, that was simple. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top