如何在webbrowser加载页面时在窗口的表单上显示图片,并在页面完成后隐藏它。 [英] How to show a picture on a window's form while the webbrowser is loading the page and hiding it once the page is complete.
本文介绍了如何在webbrowser加载页面时在窗口的表单上显示图片,并在页面完成后隐藏它。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果在webbrowser加载页面时如何在窗口的表单上显示图片,并在页面完成后隐藏它。
How to show a picture on a window''s form while the webbrowser is loading the page and hiding it once the page is complete.
推荐答案
显示导航前的图片并将其删除以响应事件System.Windows.Forms.WebBrowser.DocumentCompleted
:
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser。 documentcompleted.aspx [ ^ ]。
可选,覆盖虚方法System.Windows.Forms.WebBrowser.OnDocumentCompled
在派生类中:
http://msdn.microsoft.com/en-us/library/system.window s.forms.webbrowser.ondocumentcompleted.aspx [ ^ ]。
-SA
Show the picture before navigation and remove it in response to the eventSystem.Windows.Forms.WebBrowser.DocumentCompleted
:
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.documentcompleted.aspx[^].
Optionally, override the virtual methodSystem.Windows.Forms.WebBrowser.OnDocumentCompled
in a derived class:
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.ondocumentcompleted.aspx[^].
—SA
这篇关于如何在webbrowser加载页面时在窗口的表单上显示图片,并在页面完成后隐藏它。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文