这是因为Image6_Click没有Button这个参数嘛,写程序不能随你高兴的呀,编译没错估计是因为你没设强制变量定义解决的办法是用Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
解决方案 »
- VB怎么将数据库连接放在文件里
- 请问大家,怎样用代码动态生成Command按纽?
- 各位兄弟,帮小弟看一段代码!!!在线等!
- 询问使用MAX、MIN等函数的前提是什么?我需要引用什么东西吗?
- 用鼠标右键在表格控件中单击,如何获得光标点所在单元格的行号及列号?
- ToolBar中的ButtonMenu怎么能够点击Button时就能弹出来呢?
- DataReport做打印报表是不是有宽度限制啊!!我在DataReport上放了几个字段,运行时就出“报表宽度大于纸宽度”
- 请问大虾如何在VB中如何根据数据来模拟三维地形?急急急
- 用VB做一个测量物体尺寸的程序问题(包括硬件)
- 如何在程序运行的时候添加控件?
- 我正学VB6的数据库。在书上看到有这么一句“dim dbftabledata as database"?
- Split 函数
Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
1.Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then Unload Me
End Sub2.Private Sub Image1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then Unload Me
End Sub你的问题在于:
click事件中,找不到Button 参数。
1.Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then Unload Me
End Sub2.Private Sub Image1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then Unload Me
End Sub你的问题在于:
click事件中,找不到Button 参数。