Welcome Guest Search | Active Topics | Sign In | Register

How to change font size at webview load Options
chungpn
Posted: Thursday, April 2, 2015 10:54:40 AM
Rank: Newbie
Groups: Member

Joined: 4/2/2015
Posts: 9
I use EO.WebBrowser control in a winform C# app to load a website but the font size is too small. How can I increate the font size of wbsite langer, I use this but not success
public Form1()
{
InitializeComponent();

EO.WebBrowser.BrowserOptions options = new EO.WebBrowser.BrowserOptions();
options.AllowZooming = true;
webView1.ZoomFactor = 5;
}
eo_support
Posted: Thursday, April 2, 2015 1:06:29 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

There appears to be a problem with setting ZoomFactor before the page is loaded. You can try the following code and see if it works:

Code: C#
webView1.LoadUrlAndWait(your_url);
webView1.ZoomFactor = 5;


We will continue to investigate on our end to see why it doesn't work properly if you set it early.

Thanks!
chungpn
Posted: Thursday, April 2, 2015 6:53:55 PM
Rank: Newbie
Groups: Member

Joined: 4/2/2015
Posts: 9
Thank you for your reply,
This work but when I set webview url in InitializeComponent() , then it not work.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.