设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 1187|回复: 2
打印 上一主题 下一主题

将鼠标放到控件上停一下,你看到什么

[复制链接]
跳转到指定楼层
1#
发表于 2002-10-6 08:16:00 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
文件下载
将鼠标放到控件上停一下,你看到什么
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅
3#
发表于 2002-10-8 19:45:00 | 只看该作者
在加载项插入代码:
Private Sub Form_Load()

' Create an instance of our Tooltip class
Set TTip = New clsToolTip

' We must SetFocus to any control that can
' accept the focus in order to force Access to
' create the inplace editing Window.
Me.txtCompanyName.SetFocus

With TTip
    ' Creat the tooltip window
    Call .Create(Me)
   
    ' Set the tooltip window to show for 5 secs
    .DelayTime = 5000
   
    .SetToolTipTitle "CUSTOM TOOLTIPS", 0
   
    ' ToolTip text colors
    .ForeColor = vbBlue
    .BackColor = RGB(192, 192, 192)
  ' Set the text for the Notes label.
    .SetToolText Me.Lablel_Notes, "I am the Notes Label." & vbCrLf & "This is the second line!"
   
'Lablel_Notes==控件名
'“    ”内为现实内容!
End With

' Fill in our NOTES unbound TextBox
Me.txtNotes = "Move your Mouse over the any of the controls to see the Custom Tooltips." & vbCrLf
Me.txtNotes = Me.txtNotes & "Try moving the Mouse over the ListBox." & vbCrLf
Me.txtNotes = Me.txtNotes & "This works even if the ListBox does not have the focus!"

End Sub











点击这里给我发消息

2#
发表于 2002-10-6 08:24:00 | 只看该作者
这儿也有一个哦:)
http://www.office-cn.net/software/sf_info.asp?tableid=ssourcecode_v&id=101
我用过,效果很不错的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-9-22 11:33 , Processed in 0.089363 second(s), 27 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表