views:

122

answers:

2

Hi,

I want to add a similar mailto link as on html pages on a windows form. On clicking it, the associated mail program should open with the given email address.

Thanks, Gary

+1  A: 

Is this a .NET application?

If so, you can use a LinkLabel control for this. Set the text to the actual email address and then respond to the LinkClicked event handler like this:

        System.Diagnostics.Process.Start("mailto:" & LinkLabel1.Text)

You'll want to do some sanity checking on the email address and add some error trapping, but that should do the trick.

BenR
A: 

There is a LinkLabel control in Windows.Forms you can use.

Jason