Webbrowser control and font resize 
Author Message
 Webbrowser control and font resize

I've been having difficulty resizeing fonts within my webbrowser control.
I've had success using the exec statement modifying the font but I need to
return the existing font size first which I havn't been able to do. I've
found examples in c++( Q156693) but none in vb. Any example or pointers
would be really appreciated. Thanks

Josh Carlisle



Tue, 23 Apr 2002 03:00:00 GMT  
 Webbrowser control and font resize
Found out my problem thought I'd let you know. I wasn't passing on the size
as a long heres my code if anyone else is having this problem.

Dim range As Variant
range = CLng(size)
WebBrowser1.Exec(WB OLECMDID_ZOOM, OLECMDEXECOPT_DONTPROMPTUSER, range,
Null)


Quote:
> I've been having difficulty resizeing fonts within my webbrowser control.
> I've had success using the exec statement modifying the font but I need to
> return the existing font size first which I havn't been able to do. I've
> found examples in c++( Q156693) but none in vb. Any example or pointers
> would be really appreciated. Thanks

> Josh Carlisle



Tue, 23 Apr 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. resize problem with large fonts v. small fonts

2. Stopping webpage resizing in WebBrowser control

3. Webbrowser Control display resizing

4. Resizing a Form, changing Font Size on Controls

5. Form + control + font resizing ?????

6. HowTo: How do you change the fonts on the webbrowser control in VB6

7. ExecWB and Zoom: Font Size in WebBrowser Control

8. To change the font size of the text displayed in a WebBrowser control

9. change font size in webbrowser control

10. How to change Font of WebBrowser control?

11. HowTo: How do you change the fonts on the webbrowser control in VB6

12. How Do I: Change Font Size in WebBrowser Control

 

 
Powered by phpBB® Forum Software