帮助mousemove事件 [英] Help with mousemove event

查看:107
本文介绍了帮助mousemove事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下代码片段是MouseMove事件的VB6格式。我怎么能在VB.net中做同样的事情。任何帮助将不胜感激。

The below code snippet is form VB6 of MouseMove event. How can I do the same in VB.net. any help would be appreciated.

Private Sub cmdIOSvrMsg_MouseMove(索引为整数,按钮为整数,Shift为整数,X为单,Y为单个)

Private Sub cmdIOSvrMsg_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)

'Dim sQueueName As String

' Dim sQueueName As String

Dim oSvr As CIOServer Set oSvr = m_IOServers.Item(str(Index)) 

Dim oSvr As CIOServer Set oSvr = m_IOServers.Item(str(Index))  

oSvr.RequestNDSTransaction

oSvr.RequestNDSTransaction

设置oSvr = Nothing End Sub

Set oSvr = Nothing End Sub

推荐答案

我不确定索引和按钮参数是什么,但每个控件都会在.Net中有自己的MouseMove事件。 您只需处理鼠标移动事件,无论您使用何种控件。
I'm not sure what the index and button arguments were for, but every control will have its own MouseMove event in .Net.  You will just need to handle the mouse move event for whatever control you are working with.


这篇关于帮助mousemove事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆