Loki

Dear all,

There is a known issue regarding the web browser control in CF 2.0. That is that when the component navigates the cancel command does not work( e.cancel = true, in the navigating event using VB). And also the e.url is "Nothing" where it should carry the address that the control is navigating.

The post for the CF 2.0 SP has the following line: (http://www.microsoft.com/downloads/details.aspx FamilyID=aea55f2f-07b5-4a8c-8a44-b4e1b196d5c0&displaylang=en)

"WebBrowser's NavigatingEventArgs does not allow to cancel navigation".

I thougth that this means that the previous problem was fixed.

I am using Pocket PC 2003 and after installing the service pack still the e.cancel does nothing.

Am i doing something wrong

Does anyone have any suggestions on the matter

Loki.


Re: .NET Compact Framework CF SP2! Fixes all bugs supposed to fix??

Ilya Tumanov

Does it work on current devices, e.g. WM 5.0 or 6 Which version of the NETCF you have (click in \windows\cgacutil.exe to find out).






Re: .NET Compact Framework CF SP2! Fixes all bugs supposed to fix??

Loki

Unfortunately I do not have a machine running WM5 or 6. Currently the only available is a Pocket 2003 SE device, so I would not know about WM 5,6.

However the version of the CF is :

MicrosoftR .NET Compact Framework

[2.0.7045.0, 1.03316.0].





Re: .NET Compact Framework CF SP2! Fixes all bugs supposed to fix??

Ilya Tumanov

Use emulator then. If you don't have it please install WM 5.0/6 SDK and you will get one.






Re: .NET Compact Framework CF SP2! Fixes all bugs supposed to fix??

Loki

I am not sure if I understood correctly.

The SP is only for WM 5 or 6

Anyway...

I tried it on the emulator for WM 5! Still the same....

It does not cancel navigation....





Re: .NET Compact Framework CF SP2! Fixes all bugs supposed to fix??

Ilya Tumanov

No, SP is for all supported devices. However, in some cases there are issues with underlying OS components which won¡¯t allow particular feature to work while it will function on recent devices.

I would suggest reporting this issue via connect.microsoft.com. Make sure to include simple but complete project which reproduces the problem and detailed description of expected and actual behavior.






Re: .NET Compact Framework CF SP2! Fixes all bugs supposed to fix??

Ilya Tumanov

I looked up the issue and as I suspected that is only supported on recent devices (WM 5.0 AKU 2 and above). Should work on WM 6 emulator, for example. There's no support for that prior to WM 5.0 AKU 2.






Re: .NET Compact Framework CF SP2! Fixes all bugs supposed to fix??

Loki

In case someone is interested in this mater the same bug is still present on WM 5.

I am using an iPAQ with Microsoft Windows Mobile Version 5.0 OS 5.1.1702(Build 14366.1.0.1)
and the version of the Framework is :
.NET Compact Framework
[ 2.0.7045.0, 1.0.4292.2].

The bug is quite easy to reproduce.
Add a Web Browser control in a form, then in the navigating event add e.cancel=true...
(Private Sub WebBrowser1_Navigating(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles WebBrowser1.Navigating
e.Cancel = True
End Sub)

Nothing happens...

However the e.url now returns a valid value and not "Nothing" as used to happen in previous releases.




Re: .NET Compact Framework CF SP2! Fixes all bugs supposed to fix??

Ilya Tumanov

That is expected as this device running WM 5.0 AKU 1.0.1 and issue is only fixed starting WM 5.0 AKU 2.