hobbit666
Member
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?
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?