Friday, August 08, 2008

Loading to a web page using the default browser programmatically on Windows Mobile

Another common requirement is to show a specific URL on Windows Mobile using the default PIE. Not the UI control.

The code is very simple if running CF 2.0 or later, simply write something like the following:
System.Diagnostics.Process.Start("http://www.google.com", "");
The above works because Process wraps ShellExecute. In fact that code also works on the desktop too.

1 comment:

Anonymous said...

People should read this.