复制、剪切、粘贴问题
我想在text控件中用复制、剪切、粘贴,不知道要如何操作。请给一个例子。
复制:Clipboard.SetText (Text1.Text)
粘贴:Text2.Text = Clipboard.GetText
剪切:Text2.Text = Clipboard.GetText
Text1.Text = ""
Dim clips As String '模拟剪切板
Private Sub Command1_Click() '复制
clips = ""
clips = Text1.SelText
End Sub
Private Sub Command2_Click() '粘贴
Text1.SelText = clips
End Sub
Private Sub Command3_Click() '剪切
clips = ""
clips = Text1.SelText
Text1.SelText = ""
End Sub