【发布时间】:2015-01-02 19:27:23
【问题描述】:
我的表单中有一个名为 WebBrowser1 的 webBrowser 控件。
我使用以下代码将值拉到复选框和其他控件中:
WebBrowser1.Document.GetElementById("LastName").SetAttribute("value", "MyLastname")'<--- pull value to the textbox
WebBrowser1.Document.GetElementById("TermsOfService").SetAttribute("value", "yes")'<--- change the value of a check box
当用户单击浏览器中的按钮时,我需要显示一个消息框。 我如何跟踪点击?,即使是 C# 代码也是可以接受的,所以我标记为 C#
【问题讨论】:
标签: c# vb.net button browser webbrowser-control