WebBrowser にはこのページ ( http://gttweb.5t.torino.it/gtt/en/percorsi/percorsi-ricerca.jsp ) があり、「destinationCity」がありComboBoxます。VB.NET では、次を使用します。
Dim DestinationComboBox As HtmlElement = MainWebBrowser.Document.All.Item("destinationCity")
DestinationComboBox.SetAttribute("selectedindex", 1)
ComboBoxのselectedIndexを変更しますが、Silverlight(このWebBrowser)にはInvokeScript関数しかありません..を使用してselectedIndexを変更するにはどうすればよいInvokeScript()ですか?私はもう試した
InvokeScript("eval", "document.getElementById('destinationCity').selectedindex = 4")
しかし、うまくいきません..助けてください!