New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
zachmilano
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Mar 2010
Location: milan
Default Link to webpage

hi guys, in c# for wp, which is the code for link to a web page with a button or a hyperlink?

(sorry for my poor english )
 
Blade0rz
Old
#2  
Senior Member
Thanks Meter 31
Posts: 526
Join Date: Apr 2008
Location: Belfast
Quote:
Originally Posted by zachmilano View Post
hi guys, in c# for wp, which is the code for link to a web page with a button or a hyperlink?

(sorry for my poor english )
You need to use the WebBrowserTask:

Code:
HyperlinkButton hb = new HyperlinkButton();
hb.Click += delegate(object o, EventArgs e)
{
   Microsoft.Phone.Tasks.WebBrowserTask wbt = new Microsoft.Phone.Tasks.WebBrowserTask();
   wbt.URL = "http://www.google.com";
   wbt.Show();
};
http://msdn.microsoft.com/en-us/libr...(v=vs.92).aspx
Device: HTC One S (z520e)

Windows Mobile 6.5 Apps:
IMDb Mobile
The Following User Says Thank You to Blade0rz For This Useful Post: [ Click to Expand ]
 
zachmilano
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Mar 2010
Location: milan
works great! thanks!