I am building a C# application and using the web browser from the visual studio toolkit.. is it possible to enable this browser to do pinch zoom etc when browsing large images/pdf's for use on a tablet?
You can do this by setting body
zoom
atribute:
private void Form1_Load(object sender, EventArgs e)
{
webBrowser1.Navigate("http://google.com");
}
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
webBrowser1.Document.Body.Style = "zoom:300%;";
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With