Hi,
I am working on windows forms, in my project i have requirement like when ever user typing emai address in textbox it will appear like link.I already did for url using richtextbox detecturl property. but i dont know how to do for email address.any help?
Email id link in textbox in windows forms
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

chaitanya14 reputationPosted Jun 26, 2012, 10:55 PM EDT
private void txtlink_KeyPress(object sender, KeyPressEventArgs e)
{
txtlink.Font = new Font(txtlink.Font, FontStyle.Underline);
txtlink.ForeColor = Color.Blue;
txtlink.Cursor = Cursors.Hand;
}
private void txtlink_MouseClick(object sender, MouseEventArgs e)
{
System.Diagnostics.Process.Start("mailto:" + txtlink.Text);
}
Satyapriya NayakRank #47 · 31.5K reputationPosted Jun 26, 2012, 11:01 PM EDT