110,566
社区成员
发帖
与我相关
我的任务
分享
private void btn_copyall_Click(object sender, EventArgs e)
{
String strcpy=rchTxt_result.Text.ToString();
if (strcpy == null)
{
MessageBox.Show("文本框没有内容,无法复制!");
return;
}
else if(strcpy!=null)
{
Clipboard.SetText(strcpy);
MessageBox.Show("复制成功!");
}
}
String strcpy = richTextBox1.Text;
if (String.IsNullOrEmpty(strcpy))
{
MessageBox.Show("文本框没有内容,无法复制!");
return;
}
else
{
Clipboard.SetText(strcpy);
MessageBox.Show("复制成功!");
}