在webbrowser控件中提交表单,在winform中获取结果。如何?
我有一个嵌入了网页浏览器控件的 winform 应用程序。 我在 webbrowser 控件中加载一个 html,在 html 中填写表单,然后单击提交 问题是我需要能够将提交的数据捕获为 winform 应用程序中的变量。这可能吗?请帮我
I have a winform application that i embeded a webrowser control.
I load an html in the webbrowser control, fill the form in the html and click submit
the problem is that i need to be able to capture the submitted data as variables in the winform app. id this possible? please help me
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以附加到按钮单击事件代码:
在处理程序中,您可以从以下位置获取表单字段:
它允许您在提交之前实际捕获填写的表单。当然,所有这些事情都必须在 DocumentCompleted 事件中完成。
希望有帮助。
you can attach to button click event code:
and in handler you can get form fields from:
It allows you to capture filled form actually before it's submited. Ofcource all this stuff must be done in DocumentCompleted Event.
Hope it helps.