Disable button while page loads

hobbit666

Member
Joined
Jun 7, 2007
Messages
6
Location
Newtown, Wales
Programming Experience
Beginner
How do you disable a button while a process loads?

I have a VB.NET application that has a WebBrowser in it. When the user clicks the button it loads a web page that updates a database from a CSV file. Now this process can take upto 3 minutes and at the moment (as i'm a newbie) there is no way of telling the user something is happening.

So i thought why not just disable the button they clicked until the page has loaded and done the update. Once this is done the button can be re-enabled ready for the next file to process.

Or is there a way of getting an animation to run in the corner of the application or grey out the whole thing and display a rotating icon showing it;s running?
 
How do you disable a button while a process loads?
You may set the Enabled property of the Button to False
Or is there a way of getting an animation to run in the corner of the application or grey out the whole thing and display a rotating icon showing it;s running?
You may use a BackgroundWorker control for this.
 
Back
Top