简体   繁体   English

如何通过代码+ C#在Windows Mobile Web浏览器上适应网站

[英]How to fit a website on windows mobile web browser through code + c#

hey in my application i use web browser component on a windows form and display any website that user types in say "google.com" 嘿,在我的应用程序中,我使用Windows窗体上的Web浏览器组件并显示用户键入“ google.com”的任何网站

but that website does not fit in properly with the screen size 但是该网站与屏幕尺寸不合适

how can i do that through code? 我如何通过代码做到这一点?

i cant find any property of windows mobile... 我无法找到的Windows Mobile的任何财产......

can somebody help! 有人可以帮忙!

Well friends i got the answer you r not required to change the display size 好朋友,我得到了答案,您不需要更改显示尺寸

Windows mobile automatically did my work.It displayed the website properly..I think there was some network problem so web page cldn't display properly(think so) Windows Mobile自动完成了我的工作。它正确显示了网站。。我认为存在一些网络问题,因此网页无法正确显示(请这样看)

God Knows y earlier it didn't worked!!!!!1 神早知道你没用!!!!

This problem is discussed in Microsoft Knowledge Base article 975281: Microsoft知识库文章975281中讨论了此问题:

FIX: You cannot scroll through a Web page or visit a link by using a .NET Compact Framework 3.5-based application that hosts a WebBrowser control in Windows Mobile 6.1.4 or in Windows Mobile 6.5 FIX:您不能滚动浏览网页或通过使用基于.NET Compact Framework 3.5的应用程序来承载链接,该应用程序承载Windows Mobile 6.1.4或Windows Mobile 6.5中的WebBrowser控件

The symptoms section says: 症状部分说:

Additionally, in Windows Mobile 6.5, the horizontal and vertical scroll bars do not appear. 此外,在Windows Mobile 6.5中,不会出现水平和垂直滚动条。

A supported hotfix is available from Microsoft to resolve these problems. Microsoft提供了一个受支持的修补程序来解决这些问题。 The hotfix is a whole new build of the .NET Compact Framework 3.5. 该修补程序是.NET Compact Framework 3.5的全新构建。

So this is not a problem with the your code or with the specific device. 因此,这与您的代码或特定设备无关。

[ https://social.msdn.microsoft.com/Forums/en-US/f38afd20-dd8b-481e-813c-ed91db1df6c8/scrollbars-missing-on-webbrowser-control-net-v20-c-windows-mobile-65-no-way-to-scroll?forum=netfxcompact][1] [ https://social.msdn.microsoft.com/Forums/zh-CN/f38afd20-dd8b-481e-813c-ed91db1df6c8/scrollbars-missing-on-webbrowser-control-net-v20-c-windows-mobile-65 -无法滚动?论坛= netfxcompact] [1]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM