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.

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

From this MS link:
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/WebBrowser/WebBrowser.asp

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.

0
 
Alan WarrenCommented:
Hi Kevin,

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

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

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

kevin
0
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?

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

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

kevin rea
0
 
Jeffrey CoachmanMIS LiasonCommented:
Glad i could help!

Thanks for the grade!
:)
0
All Courses

From novice to tech pro — start learning today.