Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想加载一个网页,我不想打开它。
我想在进度条中显示页面加载过程。
当页面加载完成时,我想显示一条消息:“页面加载完成”。
我使用了这段代码,但它打开了浏览器:
System.Diagnostics.Process.Start("http://google.com");
您可以在表单上使用 Web 浏览器控件。
请参阅以下示例:
C# 代码项目中的 Web 浏览器
WebBrowser.ProgressChanged 事件 MSDN
使用 c# SO 在 Windows 应用程序项目中的 Web 浏览器控件的进度条
C# Winforms:使用带有 Web 浏览器控件 Wordpress 的进度条