The .Text property can be set to the link that you want to allow the
user to click on.
http://www.google.com
for example. Then you'd have to handle the Click event and launch the
browser, passing the value from the .Text property as a parameter.
Maybe something like this:
private void linkLabel1_Click(object sender, EventArgs e)
{
Process.Start("iesample.exe", linkLabel1.Text);
}
Note that the name of the browser depends on the device type you are
running on. I may be overlooking some easier way to establish the link
with the browser. Maybe someone else will chime in.
Paul T.
Sorry about that - I should have been more descriptive.
I dragged a LinkLabel control to my form (vb.net), but I am not sure of
what methods/properties to use. The documentation is not clear to me.
I have used, on .NET 3.5, the following:
linkWebsite.Links.Add(6, 4, "
www.example.com")
But in CF, .Links is not supported (see
http://msdn.microsoft.com/en-us/library/system.windows.forms.linklabel_members.aspx),
so which properties do I use?
Ron
Paul G. Tobey [eMVP] wrote:
What's the problem? We need something more than "doesn't work". What
links have you tried? What happens when you tap on one?
Paul T.
I am trying to get a linklabel to work on my iPAQ (WM6, VS2008,
CF3.5, VB) and I just can't seem to get the correct info. I see lots
of info on standard .net, but none of those work for CF. Anyone have
some info?