I am trying to get the width and height of the uploaded html file. This is what i have done so far.

    WebBrowser wb = new WebBrowser();
    int ht,wd;
    wb.Navigate("D:\\page1.HTM");
    ht = wb.Height;
    wd = wb.Width;

But the above code always return me the wrong size of the page.

Can anyone help me to get the exact page size in the c# environment?

Thanks in advance.

It will returns you your browser height & width.

what you want exactly ?

I want to get the exact width and height of the loading page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.