How can I use backgroundworker in my browser?
-
I'm trying to create my own web browser for my practice on windows application. So I've make a windows form for web browser. Now I want to use backgroundworker or progressbar to show real process of page loading but I don't know how to do it. I tried with Google but no result for me. So please help me if my question is right to ask about it.
-
Answer:
// add progress bar private ProgressBar progressBar1; //create event for ProgressChanged Browser.ProgressChanged += Browser_ProgressChanged; ... // set progress bar value when ProgressChanged event firing void Browser_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e) { if (e.MaximumProgress > 0) { int prog = (int)(100 * e.CurrentProgress / e.MaximumProgress); progressBar1.Value = prog; } } http://hashfactor.wordpress.com/2009/03/31/c-winforms-using-a-progress-bar-with-web-browser-control/
avirk at Stack Overflow Visit the source
Related Q & A:
- How can I use SSL with django?Best solution by Stack Overflow
- How can I use XMP in Sharepoint metadata?Best solution by Stack Overflow
- How can I use mongo-sync?Best solution by github.com
- How can I use real time social data from Datasift and perform real time analytics on it?Best solution by Quora
- How can I check my Internet Explorer browser?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.