Answered by:
axWebBrowser DocumentComplete With ComboBox

Question
-
if select 2=index 3
The third ComboBox….. The third ComboBox d`not work if work second ComboBox
pleas help
private void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e) { mshtml.HTMLDocument _doc = this.axWebBrowser1.Document as mshtml.HTMLDocument; mshtml.IHTMLElement name1 = _doc.getElementById("ctl00_PlaceHolderMain_ddlProceedingRPTLevel"); if (name1 != null) { name1.setAttribute("selectedIndex", 2); name1.setAttribute("selected", "selected"); } }
but 3 dropbox d'not work
DocumentComplete d`not work with the dropbox
- Edited by AL3ANEED Wednesday, November 13, 2019 1:35 PM
- Moved by CoolDadTx Wednesday, November 13, 2019 2:39 PM Winforms related
- Moved by Kyle Wang - MSFTMicrosoft contingent staff Friday, November 15, 2019 7:03 AM
Answers
-
Maybe this is the Forum for arabic language:
https://social.msdn.microsoft.com/Forums/windows/ar-SA/home?forum=winforms
Regards, Guido
(But I cannot read arabic)- Edited by Guido Franzke Friday, November 15, 2019 10:04 AM
- Proposed as answer by Richard MuellerMVP, Moderator Friday, November 15, 2019 10:17 AM
- Marked as answer by Richard MuellerMVP, Moderator Friday, November 22, 2019 5:54 PM
All replies
-
Hi AL3ANEED,
Could you please explain the statement "if select 2=index 3" and "The third ComboBox don't work if work second ComboBox"?
In your code, there is no statement about ComboBox. And what is the "mshtml" you defined?
It would be better if you can explain them in detail.
Best Regards,
Daniel Zhang
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Edited by Daniel_Zhang-MSFTMicrosoft contingent staff Thursday, November 14, 2019 2:55 AM
-
-
-
The combobox items are probably create by javascript code that runs some time after DocumentComplete. A simple fixed length wait may or may not make the combobox filled (it will be up to the author of that website).
Visual C++ MVP -
Maybe this is the Forum for arabic language:
https://social.msdn.microsoft.com/Forums/windows/ar-SA/home?forum=winforms
Regards, Guido
(But I cannot read arabic)- Edited by Guido Franzke Friday, November 15, 2019 10:04 AM
- Proposed as answer by Richard MuellerMVP, Moderator Friday, November 15, 2019 10:17 AM
- Marked as answer by Richard MuellerMVP, Moderator Friday, November 22, 2019 5:54 PM