Chromuiumwebbrowser打开空白形式为什么?
我创建了一个项目,并在其中添加了nuget的cefsharp.winforms。
我给了一个地址,铬植物打开了它。当我围绕此地址导航时,我单击了下载链接。没问题,文件已下载。但是,一个空的形式打开了。
什么是空形式,为什么它打开和如何从代码中关闭它?
I created a project and added CefSharp.WinForms from nuget in it.
I gave an address and ChromiumWebBrowser opened it. While I was navigating around this address, I clicked a download link. No problem, the file is downloaded. but with that an empty form opens.
what is this empty form, why is it opening and how can i close it from the code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您单击的链接打开了一个弹出窗口,则可以预期一个空白窗口。您可以隐藏窗口,直到下载完成,然后将其关闭。以下代码将所有文件保存到temp文件夹。您可以将文件夹更改为用户配置文件中的路径,也可以将文件夹更改为“ usefolder呼叫” askuser。
If the link you clicked opened a popup then a blank window is expected. You can hide the window until the download is complete then close it. The following code saves all files to a temp folder. You can change the folder to a path within the users profile or instead of UseFolder call AskUser.