Determine the document size using the webbrowser control

Posted on 2007-08-07
Last Modified: 2013-11-05
I have a winforms application that has a browser control on it. I am using this winforms to measure how long it takes to download a page, which works great. Now I would like to measure the byte size of the page. Is there a property of the webbrowser control that would allow me to find this out?
Question by:brokeMyLegBiking
    LVL 96

    Accepted Solution

    Try WebBrowser.DocumentText.Length.

    LVL 4

    Author Comment

    ok, great, thanks. I notice that that accounts for the size of the HTML page, but not for images contained on the page. Any idea how to get the size of the images?

    LVL 96

    Expert Comment

    by:Bob Learned
    You would have to download all the images to find that information out.


    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Article by: Ivo
    Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
    Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now