Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

How to get length of iHTMLElementCollection using mshtml shdocvw in c#

$
0
0
when i tried to get length of the IHTMLElement collection when the collection is empty i get "

UnauthorizedAccessException". elements.length is a dynamic expression.

 IHTMLElementCollection elements = ((IHTMLDocument2)document3).all;

if(elements == null || elements.length==0)
 {
   // this if conditions always throws error
 }


Krrishna



Viewing all articles
Browse latest Browse all 3527

Trending Articles



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