以下是窗口“DoubleClick”事件代码:
If e.Sender.Text = "" Then
MessageBox.Show("空值,无法复制!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Else
ClipBoard.SetText(e.Sender.Text)
MessageBox.Show("已复制!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If