Hi Dragan,
The following works for me for zoom levels from 0 (Smallest) to 4 (Largest)
OLECMDEXECOPT_DONTPROMPTUSER = 2
OLECMDID_ZOOM = 19
Thisform.oWeb.OBJECT.ExecWB(OLECMDID_ZOOM, OLECMDEXECOPT_DONTPROMPTUSER, lnZoomLevel, Null)
>I have a browser object on the form, and want to have a couple of buttons to increase or decrease the font size. I've found the .h file with all the IDS_* constants, and read whatever Microsoft had to say about this on MSDN.
>
>I've done the search here, and there's only one message here with .execWB(19,2,...) (19 is command to set font size) from Michael Ashermann, and he says that it works for him, just doesn't return the result properly (i.e. he can't get it to retrieve the current font size).
>
>I wish that worked for me. Whatever I try, I get 0x80040100: Trying to revoke a drop target that has not been registered. That surely gives me incredibly deep insight into what's going on :).
>
>I tried obrowser.document.execCommand("FontSize",2,5) (varying last parameter), but it works on selected text only - and on text only, doesn't change the fontsize in textboxes etc.
>
>So... did anyone try to change the font size in a browser object programmatically, with any success?
--sb--