2个回答
展开全部
很简单的代码,以下供你参考。
Private Sub menu21_Click() 'cut
Clipboard.Clear
Clipboard.SetText RichTextBox1.SelText
RichTextBox1.SelText = ""
' RichTextBox1.SetFocus
End Sub
Private Sub menu22_Click() 'copy
Clipboard.Clear
Clipboard.SetText RichTextBox1.SelText
' FontName1 = RichTextBox1.SelFontName
End Sub
Private Sub menu23_Click() 'paste
RichTextBox1.SelText = Clipboard.GetText()
' RichTextBox1.SelFontName = FontName1
End Sub
Private Sub menu21_Click() 'cut
Clipboard.Clear
Clipboard.SetText RichTextBox1.SelText
RichTextBox1.SelText = ""
' RichTextBox1.SetFocus
End Sub
Private Sub menu22_Click() 'copy
Clipboard.Clear
Clipboard.SetText RichTextBox1.SelText
' FontName1 = RichTextBox1.SelFontName
End Sub
Private Sub menu23_Click() 'paste
RichTextBox1.SelText = Clipboard.GetText()
' RichTextBox1.SelFontName = FontName1
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询