Web Browser exception

Hi,
I've added a web browser control on a form and try to implement the Back, Forward buttons.
The code on the Back button is the following:

Dim return_code As Boolean
return_code = me.webbrowser1.CanGoBack
if return_code = True then
Me.webbrowser.goBack()
End If

The line

'return_code = me.webbrowser1.CanGoBack'

is returning an exception

'An unhandled exception of type System.NotSupportedException' occured in System.Drawing.dll

please could someone help? thanks,
Silvia


[1255 byte] By [Silvia] at [2008-1-29]
# 1

Thanks for reporting this bug. This is a bug in the .Net Compact Framework.

David

DavidTSo at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 2
After further investigation, there is actually a bug in the tool side to expose the CanGoBack and CanGoForward method in the intellisense. These two methods are only supported in the latest Windows Mobile 5.0 Pocket PC and Windows Mobile 5.0 Smartphone OS and thus you will get NotSupportedException if run in other OS.

Thanks,

David

DavidTSo at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 3

Just to add the list of unsupported properties, methods.

Under Pocket PC 2003, you can't use the following:
GoBack, GoForward, CanGoBack, CanGoForward, CanGoBackChanged, CanGoForwardChanged, Refresh, IsBusy, IsOffline, ReadyState, ScriptErrorsSuppressed, NavigatingEventArgs.Url

Also note that under generic wince, the control may behave slightly differently with regard to events and timing depending on what browser (regular IE, or Pocket IE) has been bundled with the image. set_DocumentText is not supported on wince images built with PocketIE.

DavidTSo at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 4
I also encountered this problem today. What would be the workaround for this? Specifically, I need the "GoBack", "GoForward", and "Refresh" methods. Thanks in advance.
AaronFirouz at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...