Webbrowser Component - Select multiple items in listbox?
I'm working with the webbrowser component. I have a listbox on a HTML-page.
This is what the listbox HTML looks like:
<select name="domains_to_add[]" id="domains_to_add" multiple="multiple" class="multi_domains" size="10">
I would like to select multiple items in the listbox, any idea how I do it? :sick:
Re: Webbrowser Component - Select multiple items in listbox?
In your _DocumentComplete event after you know for sure you have the correct page loaded then you simply select items in the listbox by their index value like this:
Code:
'
'
Private Sub WebBrowser1_DocumentComplete(..........)
'
'
'
' nn = numeric value of the list item you want to select
'
WebBrowser1.Document.All("name-of-listbox").Value = nn
'
'
'
End Sub
Re: Webbrowser Component - Select multiple items in listbox?