关于.NET CF版WebBrowser控件的问题
2011-01-06 10:59:07 来源:WEB开发网从OpenNETCF 1.4的源码提取出WebBrowser控件不算麻烦,我大概花差不多1个小时的时间提取、整理和调试。如果你觉得麻烦,可以直接下载这篇文章的代码直接拿来用,而且比我自己提取的好用,Navigated事件能够正常触发。
经过在一些仿真器和真机上测试,OpenNETCF版的WebBrowser控件都能够正常展现HTML页面,满足了我的项目需求。另外还有两个很有用的特性:1)不会出现页面加载状态栏;2)可以禁用页面的右键菜单,甚至换成自己的右键菜单。
这个问题终于可以告一段落,下面是一些相关的参考文章:
Mouse Events for WebBrowser Control in .NET CF
http://www.codeproject.com/KB/windows/browsermouseevents.aspx
Disable WebBrowser's Context-Menu in NETCF applications
http://blogs.msdn.com/b/raffael/archive/2009/01/08/disable-webbrowser-s-context-menu-in-netcf-applications.aspx
Subclassing NETCF Applications
http://blogs.msdn.com/b/raffael/archive/2008/02/26/subclassing-netcf-applications.aspx
Windows Mobile 6.5 Web Browser Control: Enabling Gesture support
http://blog.mjfnet.com/Blog/2009/07/21/WindowsMobile65WebBrowserControlEnablingGestureSupport.aspx
Windows Mobile 6.5 Web Browser Control: Enabling Selection support
http://blogs.msdn.com/b/mikefrancis/archive/2009/07/21/windows-mobile-6-5-web-browser-control-enabling-selection-support.aspx
Hosting ActiveX Controls in the .NET Compact Framework 2.0
http://msdn.microsoft.com/en-us/library/aa446515.aspx
Microsoft released a HotFix for NETCF v3.5 on Windows Mobile 6.1.4 onwards, to address basic functionalities of WebBrowser control
http://blogs.msdn.com/b/raffael/archive/2009/09/29/microsoft-released-a-hotfix-for-netcf-v3-5-on-windows-mobile-6-1-4-onwards-to-address-basic-functionalities-of-webbrowser-control.aspx
Hiding the Progress Bar of a .NET 2.0 CF WebBrowser
http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser
更多精彩
赞助商链接