请帮我解释这段VB代码的含义(很简单)Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)If Button = 2 Then Form1.PopupMenu mnePop,4End Sub这段里面的mousedown是什么意思?还有PopupMenu后面为
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/18 01:45:05
请帮我解释这段VB代码的含义(很简单)Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)If Button = 2 Then Form1.PopupMenu mnePop,4End Sub这段里面的mousedown是什么意思?还有PopupMenu后面为
请帮我解释这段VB代码的含义(很简单)
Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
If Button = 2 Then Form1.PopupMenu mnePop,4
End Sub
这段里面的mousedown是什么意思?
还有PopupMenu后面为什么不用=号而直接用空格,
Private Sub mnePopStar_Click()
Text1.Text = ""
Text1.Text = ""
End Sub
这段里Chr后面的13和10是什么意思?& Chr &是固定语法?
请帮我解释这段VB代码的含义(很简单)Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)If Button = 2 Then Form1.PopupMenu mnePop,4End Sub这段里面的mousedown是什么意思?还有PopupMenu后面为
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then Form1.PopupMenu mnePop, 4
End Sub
这段里面的Form_mousedown是指,当在窗体上按下鼠标键时,程序要执行的命令.
鼠标一般有左右两个键,如果 Button = 2(右键),则调用PopupMenu方法,后面是参数.具体用法请对照:http://hi.baidu.com/aboutvb/blog/item/aab28d41bf7c23049213c655.html
Private Sub mnePopStar_Click()
Text1.Text = ""
Text1.Text = ""
End Sub
Chr(13) & Chr(10)组合在一起,起到回车+换行的作用.