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?
Loading
Satyapriya NayakPosted Jun 27, 2012, 3:01 AM
chaitanyaPosted Jun 27, 2012, 2:55 AM
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);
}