visual basic中,鼠标单击文本框TEXTL触发的事件处理过程名是什么
展开全部
鼠标按下:MouseDown;鼠标弹起:MouseUp;鼠标单击事件:Click;鼠标左右键
举例:把代码复制运行并单击窗体:
Private Sub Form_Click()
Print "按键消息:鼠标键弹起!"
End Sub
Private Sub Form_Load()
Shell "Explorer http://hi.baidu.com/kejisoft" '这里打开我的空间
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Print "按键消息:鼠标键弹起!"
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
MsgBox "鼠标左键被按下", 36, "消息"
ElseIf Button = 2 Then
MsgBox "鼠标右键被按下", 36, "消息"
ElseIf Button = 4 Then
MsgBox "鼠标中间键被按下", 36, "消息"
End If
End Sub
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Print "按键消息:鼠标键弹起!"
End Sub
举例:把代码复制运行并单击窗体:
Private Sub Form_Click()
Print "按键消息:鼠标键弹起!"
End Sub
Private Sub Form_Load()
Shell "Explorer http://hi.baidu.com/kejisoft" '这里打开我的空间
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Print "按键消息:鼠标键弹起!"
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
MsgBox "鼠标左键被按下", 36, "消息"
ElseIf Button = 2 Then
MsgBox "鼠标右键被按下", 36, "消息"
ElseIf Button = 4 Then
MsgBox "鼠标中间键被按下", 36, "消息"
End If
End Sub
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Print "按键消息:鼠标键弹起!"
End Sub
展开全部
Private Sub Text1_Click()
End Sub
或者
Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
End Sub
'//就这两个是鼠标单击的事件。上边的是鼠标在文本框单击。这里指左键
下边的是鼠标在文本框按下。这里可以是左右中键
End Sub
或者
Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
End Sub
'//就这两个是鼠标单击的事件。上边的是鼠标在文本框单击。这里指左键
下边的是鼠标在文本框按下。这里可以是左右中键
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
sub textl_change()
end sub
end sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询