Winform:复制当前程序
2017-08-09 16:36:03 访问(1519) 赞(0) 踩(0)
#region 复制当前程序
/// <summary>
/// 复制当前程序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void 复制当前程序ToolStripMenuItem_Click(object sender, EventArgs e)
{
string str = Application.ExecutablePath;
System.Collections.Specialized.StringCollection stringCollectionValue
= new System.Collections.Specialized.StringCollection();
stringCollectionValue.Add(str);
Clipboard.SetFileDropList(stringCollectionValue);
MsgForm.MsgShowDialog("复制成功");
}
#endregion 复制当前程序
上一条:
下一条:
相关评论
发表评论