Webbrowser控件上缺少滚动条 - .Net v2.0 / C#/ Windows mobile 6.5 - 无法滚动 [英] Scrollbars missing on Webbrowser control - .Net v2.0 / C# / Windows mobile 6.5 - no way to scroll

查看:128
本文介绍了Webbrowser控件上缺少滚动条 - .Net v2.0 / C#/ Windows mobile 6.5 - 无法滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

摘要:我无法让滚动条显示在我的设备上的网络浏览器控件中。文字也太大了

Summary: I can't get scrollbars to appear in a web browser control on my device. Also the text is too large

我的应用程序中有一个Web浏览器控件(.Net v2.0 / C#/ Windows mobile 6.5)。当我在模拟器上使用我的应用程序的那部分时,我得到滚动条,在我的设备(HD2)上我没有。文字也很大。由于这些问题,
用户无法滚动,甚至认为我加载的html文档明显偏离页面底部。

I have a web browser control inside my app (.Net v2.0 / C# / Windows mobile 6.5). When I use that part of my app on the emulator I get scroll bars, on my device (an HD2) I don't. The text is also very large. Because of these issues there is no way for the user to scroll, even thought the html document I've loaded clearly goes off the bottom of the page.

这只是我的设备 - 或一般问题?我发现其他一些人在网络上提到了类似问题的人。

Is this just my device - or a general problem? I've found a few other mentions people having a similar problem, around the web.

我见过微软发布了.Net 3.5的cab文件,旨在解决web浏览器控制问题问题 - 这有两个问题,我更希望保持我的应用.Net 2.0与大多数用户的兼容性,并且也不希望有
依赖我的用户安装修补程序或升级到框架。

I've seen Microsoft have released a cab file for .Net 3.5 that is meant to address webbrowser control issues - two problems with this, I would much prefer to keep my app .Net 2.0 for compatibility with the majority of my users, and also don't want to have to rely on my users installing a hotfix or an upgrade to the framework.

我找不到修复程序(对于托管的代码应用程序)。当然,对于框架的这个基本部分(当然我不是第一个想要在应用程序中显示网页的应用程序编写者!?)必须有办法让它显示滚动条/正确的文本大小?

I can't find a fix (for a managed code app). Surely for such a fundamental part of the framework (surely I'm not the first app writer to want to display a web page in-app!?) there must be ways to get it to show scrollbars / the correct text size?

任何帮助非常感谢。谢谢!

Any help much appreciated. Thanks!

Ian

 

推荐答案

嗨Ian:

Microsoft知识库文章975281中讨论了此问题:

 

   FIX:您无法滚动浏览网页或使用基于.NET Compact Framework 3.5的应用程序访问链接,该应用程序在Windows Mobile 6.1.4或Windows Mobile 6.5中承载WebBrowser
控件

 

症状部分说:

 

  
此外,在Windows Mobile 6.5中,水平和垂直滚动条不显示。

 

 

Microsoft提供了一个受支持的修补程序来解决这些问题。此修补程序是.NET Compact Framework 3.5的全新版本。

 

所以
这不是您的代码或特定设备的问题

 

作为替代方案,您可以决定重新设计您的应用程序–使用更大的窗口,或重新设计网页,以适当的
为单位 - 适当地渲染小屏幕设备,这样就不需要滚动条。通过这种方式,滚动条问题变得毫无意义。

 

或者,开发人员可以将网页的文本设置为非常小的尺寸,也许整个内容都适合窗口不需要滚动
吧。我不建议这样做,因为文本大小对于许多用户来说可能太小了。更好的是,在程序中提供UI以选择文本大小。

 

 

如果这回答了你,请告诉我问题。

Wendell


这篇关于Webbrowser控件上缺少滚动条 - .Net v2.0 / C#/ Windows mobile 6.5 - 无法滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆