VB中如何给按钮设置右键点击事件?(非常菜

[复制链接]
查看11 | 回复2 | 2009-6-16 18:44:52 | 显示全部楼层 |阅读模式
直接调用鼠标事件啊 Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)ifbutton = 2 then这里写你想要的代码end if End Sub...
回复

使用道具 举报

千问 | 2009-6-16 18:44:52 | 显示全部楼层
Private Sub Form_MouseDown (Button As Integer,_ Shift As Integer, X As Single, Y As Single) If Button = 1 then '左键 endif If Button = 2 then '右键 endifEnd Sub...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行