|
无聊的疯子 发表于 2012-8-7 12:10
MouseMove事件 不是有 X,Y 座标么?
根据这个座标,来确定是显示还是隐藏 - Private Sub Image1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
- Dim b As Boolean
- With Me.TextBox1
- .Visible = False
- .Text = "我是提示信息"
- .TextAlign = fmTextAlignCenter '居中
- .BackStyle = fmBackStyleTransparent '透明
-
- b = True
- If X < 5 Or Y < 5 Then b = False
- If X > 55 Or Y > 55 Then b = False
- If b = True Then
- .Visible = True
- Else
- .Visible = False
- End If
- End With
- End Sub
复制代码
新建3.rar
(29.05 KB, 下载次数: 73)
|
评分
-
查看全部评分
|