webBrowser

R

RobcPettit

Hi, Ive created a form and added 4 webBrowsers. Effectivly when
running in full screen, devides the screen into 4, a web page in each
section. What Id like to do is reduce the display size of each
webBrowser. What Imean is, If I was using Internet explorer to view
one of the web sites, in full screen, Id like to see the same info, in
one of my sections. Only its now 25% of the screen. I suppose in
effect I would be zooming down, to see more and more of the web site.
Can this be done. Each website is selected at programming, so theres
no address bars just pure webBrowser.
Regards Robert
 
N

Nicholas Paldino [.NET/C# MVP]

The closest thing that I can think of is to get the ActiveXInstance and
then call the ExecWB method on the IWebBrowser2 interface, passing the value
of OLECMDID_ZOOM (for the zoom command). You will have to use interop for
this, and you might be able to get away with this.

Do you require the instances to be interactive, or are you just
displaying the images? If you don't need the instances to be interactive,
then you can call the DrawToBitmap method to draw the image to a bitmap that
is the appropriate size. The documentation says that you shouldn't use it
from your code, and it isn't supported, so you will have to take into
consideration what happens if they change it in the future.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top