.net cf 3.5 webbrowser控件在wince 5.0上不起作用 [英] .net cf 3.5 webbrowser control doesn't work on wince 5.0

查看:108
本文介绍了.net cf 3.5 webbrowser控件在wince 5.0上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我试图在根目录\test.html


下加载一个简单的html文件但是, C#(智能设备)中的webbrowser控件  windows窗体应用程序没有显示任何内容。


在VS2008调试模式下,它输出


" A System.dll中出现'System.UriFormatException'类型的第一次机会异常"


我使用的代码是


webBrowser1.Navigate(new Uri(" \\test.html"));


我确认test.html存在于WinCE 5.0设备的根目录下。


<有人可以给我一些想法吗?


谢谢。


kody

解决方案

试试" /的test.html"

Hello,

I tried to load a simple html file under the root directory \test.html

however, the webbrowser control in C# (smart device) windows form application shows nothing.

in VS2008 debug mode, it outputs

"A first chance exception of type 'System.UriFormatException' occurred in System.dll"

the code that I used is

webBrowser1.Navigate(new Uri("\\test.html"));

I confirmed test.html exists under WinCE 5.0 device's root directory.

Can someone give me some ideas?

Thanks.

kody

解决方案

Try "/test.html"


这篇关于.net cf 3.5 webbrowser控件在wince 5.0上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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