RSS

Tag Archives: zoom content

Embedding web browsers in Winform applications


Winform ships with a built-in WebBrowser control where you can use it to embed a web browser in a Winform Application. It is relatively trivial to implement it:

  • In Visual Studio Toolbox, Search “Web Browser”, and you will find the WebBrowser control

    image

  • Drag it to the winform designer
  • In Form Load event handler, add below code:

browser.Navigate(Github.com);

  • Now if you run the application, a browser is embedded into your winform application:

    image

 

There are several problems using this approach:

  • This browser control is based on IE browser, which has many limitations that IE has. 
  • It is not easy to implement the zoom-fit or Zoom-content features to make sure the web page is all visible in this embedded browser

Read the rest of this entry »

Advertisements
 
5 Comments

Posted by on July 4, 2015 in Dotnet/C#, Programming

 

Tags: , , , , , , , , , , , , ,