webbrowser control - Is it possible to use the .NET CF 2.0 browser in a .NET CF 3.5 windows mobile app? -
i working on windows mobile 6.5.3 app using .net compact framework 2.0. use webbrowser control display barcode, using jquery lib. have upgraded project .net cf 3.5, , browser embedded in webbrowser control has changed (loading bar @ bottom, large scrollbar etc). problem lib not work anymore on new browser. possible somehow use old browser in webbrowser control ?
thank you
i found great trick in this answer. solution given @josef :
/// <summary> /// check , change mshtml rendering engine /// </summary> /// <param name="ival">0 = use new ie6 engine, enable javascript /// 1 = use old pie engine</param> /// <returns></returns> bool checkmshtml(int ival) { bool bret = false; microsoft.win32.registrykey rkey = microsoft.win32.registry.localmachine.opensubkey(@"security\internet explorer",true); if (rkey != null) { int imshtml = (int) rkey.getvalue("mshtml"); if (imshtml != ival) { rkey.setvalue("mshtml", ival, microsoft.win32.registryvaluekind.dword); rkey.flush(); rkey.close(); bret = true; } else { rkey.close(); bret = true; } } return bret; }
Comments
Post a Comment