1,451
社区成员
发帖
与我相关
我的任务
分享
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If Shift = 2 And KeyCode = vbKeyV Then '如果是Ctrl+V,清空剪贴板
Clipboard.Clear
End If
End Sub
Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then '如果是右键,清空剪贴板
Clipboard.Clear
End If
End Sub
Private Sub Text1_Change()
If InStr(Text1.Text, "*") <> 0 Then
Text1.Text = Replace(Text1.Text, "*", "")
Text1.SelStart = Len(Text1.Text)
End If
End Sub