当前位置:网站首页>C WinForm [help interface - send email] - practice five

C WinForm [help interface - send email] - practice five

2022-07-05 07:55:00 BoomBiuBiu

1、 Add help buttons on the menu bar

2、 Right click your new project -- add to -- forms

  Name it HlepForm:

 3、 Set the form :

 4、 choice E-Mail The event LinkClicked-- Double click to enter the code editing page

  Edit code :

private void llblEMail_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
    System.Diagnostics.Process.Start("mailto:[email protected]");
}

5、 Double click the help button in the main interface to enter the code editing page

private void  help toolStripMenuItem_Click(object sender, EventArgs e)
{
    HelpForm helpForm = new HelpForm();
    helpForm.ShowDialog();
}

6、 Run the program

  Click on email :

 

原网站

版权声明
本文为[BoomBiuBiu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140548302869.html