|
-
January 2nd, 2009, 07:57 AM
#1
How can I change the text size when using a System.Windows.Forms.WebBrowser?
I am using a System.Windows.Forms.WebBrowser in my application.
I want the user to be able to change the text size, just like it can be done when using IExplorer.
(If you click the ‘View’ on the menu, and then ‘Text Size’, you can choose between 5 different sizes of text).
I tried the following:
Code:
webBrowser1.Document.ExecCommand("FontSize", false, "2");
But, it worked only on selected text, and value of font size can be from 1-7, so it’s not really the same.
Is there some other way?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|