Webbrowser control font size ??

HI guys,

I have a webbrowser control on a form.
Access 2003.,
is there any way to control the size of the text in the webbrowser control like
you would in internet explorer ?
I am trying to make the size of the screen as small as possible..
in internet explorer i would just click on View/Text Size/ and then medium, small , large or what ever.
I do not need the use of the variable size., I just need to make it smaller than it already is.

Who is Participating?
Jeffrey CoachmanConnect With a Mentor MIS LiasonCommented:
Try this first...

From this MS link:

Changing Fonts with the WebBrowser Control
The WebBrowser automation model does not support a method that allows you to change the font of the text of the currently displayed page. However, the WebBrowser control exposes this functionality through the IOleCommandTarget interface. Call the IWebBrowser2::get_Document method, which returns an IDispatch pointer. Using this IDispatch pointer, call QueryInterface on IID_IOleCommandTarget. With this IOleCommandTarget interface pointer, call IOleCommandTarget::Exec with OLECMDID_ZOOM and use the pvaIn input argument to pass a value in the range of 0 to 5 (where 0 is smallest), indicating the desired scale of the font. This, in effect, mimics the functionality available through the Internet Explorer Fonts command on the View menu.

This is your answer, straight from Microsoft.

Alan WarrenCommented:
Hi Kevin,

you could encapsulate your text in a <Font> tag to render fonts in a web-browser control.

<font size="2" face="Verdana">
This is a paragraph.
<font size="3" face="Times">
This is another paragraph.

Alan ":0)
kevinsreaAuthor Commented:
i don't see how that is going to change the font size in a webbrowser element in a form.

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Alan WarrenCommented:
Hi Kevin,

could you explain a little about your intended purpose for your web-browser?
What  are you trying to display?

kevinsreaAuthor Commented:
it displays the web page address that the user puts in the form.

kevinsreaAuthor Commented:
how do i close this question without awarding any points, since it has not been answered ??

kevin rea
Jeffrey CoachmanMIS LiasonCommented:
Glad i could help!

Thanks for the grade!
All Courses

From novice to tech pro — start learning today.