Results 1 to 2 of 2

Thread: How can I shrink the web page for inside a Webview2 control

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2016
    Posts
    113

    How can I shrink the web page for inside a Webview2 control

    I have a webview2 control that loads a webpage that is a little too big. The control is sized for the form so I can't really change the size of the control. When the webpage loads, I can shrink the webpage to fit in the control by holding the CRTL button button and using the scroll wheel. While it is not a big deal for me to use the mouse and key to change the size of the webpage, I would like to know how to shrink the webpage using code for future reference.

    This is the webpage before I change it
    Name:  Before Webpage.jpg
Views: 1066
Size:  32.4 KB

    This is the webpage after I use the mouse wheel and CTRL-Key

    Name:  After Webpage.jpg
Views: 1027
Size:  43.1 KB
    I don't program, I beat code into submission!!!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: How can I shrink the web page for inside a Webview2 control

    Never done it myself but 30 seconds with a search engine led me here:

    https://docs.microsoft.com/en-us/dot...net-1.0.992.28

    That's for the WPF control but another 30 seconds showed that the WinForms control has the same property but that documentation has a little less information.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width