How can I put, and use, a progress bar for my web browser control, in a windows application project, using the c# language?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Look at the WebBrowser.ProgressChanged event.
Use
WebBrowser.ProgressChanged
Event, but to report the progress use the code below:The
WebBrowser
control has aProgressChanged
event:You need to attach an event handler to the
ProgressChanged
event:This is shorthand for:
The compiler will infer the handler and add that at compile time.
Next, implement the handler:
The
WebBrowserProgressChangedEventArgs
type supports aCurrentProgress
property which reflects the current state of the browser control's progress.