Link label equivalent

  • Thread starter Thread starter Tommy Malone
  • Start date Start date
T

Tommy Malone

Is there a link label equivalent for the CF? How does one get hyperlinks on
forms in the Pocket Pc environment?
 
There's one in the OpenNETCF SDF, which is normally available at
www.opennetcf.org/sdf. Unfortunately our ISP dropped the ball on our domain
registration so it'll be a day or so before the registration propagates to
all DNS servers.
 
Tommy Malone said:
Is there a link label equivalent for the CF? How does one get hyperlinks on
forms in the Pocket Pc environment?

OpenNETCF has a number of handy controls that the Compact Framework did not include:

OpenNETCF.Windows.Forms.LinkLabel

Take a look at www.opennetcf.org

-a
 
Can I trouble you for some sample VB click event code to launch IE with the
label URL?

I cannot find any CF documentation in VB for the link label. Is there a
createprocess equivalent?
 
The LinkLabel control is very close to the desktop fx LinkLabel control. So
you should be able to use the documentation in the help. Just use the shared
Process.Start method to start a process (aka createprocess). It's in the
SDF.
http://www.opennetcf.org/sdf


--
Tim Wilson
..Net Compact Framework MVP
{cf147fdf-893d-4a88-b258-22f68a3dbc6a}
Tommy Malone said:
Can I trouble you for some sample VB click event code to launch IE with the
label URL?

I cannot find any CF documentation in VB for the link label. Is there a
createprocess equivalent?


Alex Yakhnin said:
Which had become a part of SDF:
http://www.opennetcf.org/PermaLink.aspx?guid=3a013afd-791e-45ef-802a-4c1dbe1cfef9
 
Forgot to post the code. Drop a LinkLabel on the Form, double-click it to
wire up the LinkClicked event, and then use "Process.Start".

Imports OpenNETCF.Diagnostics

Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As
OpenNETCF.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
LinkLabel1.LinkClicked
' To start PIE only.
Process.Start("iexplore.exe")

' To start PIE and navigate to a specific URL.
Process.Start(http://www.opennetcf.org/)

' To start PIE and navigate to the URL indicated by the LinkLabel's
' LinkData property. This property can be set through the designer.
Process.Start(e.LinkData.ToString())
End Sub
 
Back
Top