Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2010 Please help me for IE popup dialog on WebBrowser Control

$
0
0
I have i problem with WebBrowser control,
When I navigate Web then Fill all the form after submit
the message will popup From Microsoft Internet Explorer

then said "The data will save do you want to continue?

the options is "OK and "Cancel"

How to click the "OK" using WebBrowser Control in vb.net 2010?

I try this but not working

Code:

Dim allelements1 As HtmlElementCollection = WebBrowser1.Document.All

For Each webpageelement As HtmlElement In allelements1
            If webpageelement.GetAttribute("name") = "btnOk" Then

                webpageelement.InvokeMember("click")

            End If

        Next

thanks in advance!!

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>