Using VB.net 2003 Windows forms - How do I determine which setting the user has selected for Text Size in IE. (In the IE Veiw menu where the user has the option to set Text Size to Largest, Larger, Medium,Smaller, Smallest. )
I am using - Dim IE As SHDocVw.InternetExplorer to obtain other properties like
IE.height, IE.LocationURL , etc, can this info be gathered from there also or is there some other indicator I should observe to tell if the user has changed the size of the text they view to something other than medium/default?
IE.Document.body.currentStyle.fontsize always returns (small ) no matter the setting????
I found this example on EE to use with the webbrowser control - can anyone help translate this over to work with IE?
Function GetFontSize(WebCtl As WebBrowser) As String
Dim vFontSize As Variant
Call WebCtl.ExecWB(OLECMDID_ZOOM, OLECMDEXECOPT_DODEFAULT, 0, vFontSize)
Select Case vFontSize
GetFontSize = "Smallest"
GetFontSize = "Smaller"
GetFontSize = "Medium"
GetFontSize = "Larger"
GetFontSize = "Largest"