小编Sna*_*ite的帖子

多个按钮调用相同的功能.可以找出哪个按钮称为函数?

我有5个按钮,可以调用此弹出功能发送电子邮件.如何确定哪个单击按钮称为该功能?

   public void popup(object sender, EventArgs e)
    {

        if (MessageBox.Show("You may not Bind, Change, Or Alter Insurance Coverage through e-mail. Confirmation of this e-mail by us initiates any changes to your Insurance. If you need any immediate service please contact our office at 1-800-875-5720.", "IMPORTANT!", MessageBoxButtons.OKCancel) == DialogResult.OK)
        {

            {
                string email = "mailto:davidadfa.t@ifdafdadf.com";
                Process.Start(email);
            }
        }
    }
Run Code Online (Sandbox Code Playgroud)

c# email button

1
推荐指数
1
解决办法
4566
查看次数

标签 统计

button ×1

c# ×1

email ×1