注册 登录
Office中国论坛/Access中国论坛 返回首页

gxy1000的个人空间 http://www.office-cn.net/?196895 [收藏] [复制] [分享] [RSS]

日志

好记性不如烂笔头

已有 1790 次阅读2011-3-26 22:31

Private Sub frm_child_iamge_properties(ByVal imagename As String)
Dim CtlA As Access.Control
'循环处理活动窗体的所有控件
For Each CtlA In Me.Controls
     If CtlA.ControlType = acImage Then  '针对 图像 控件进行遍历设置
        If CtlA.name = imagename Then
          With CtlA
           ' .borderwith = 3
            .BorderColor = 16744448
            .BorderStyle = 1
           
          End With
         
        Else
       
        With CtlA
           ' .borderwith = 1
            .BorderColor = 0
            .BorderStyle = 0
        End With
        
        End If
     End If
Next CtlA
End Sub
Private Sub 图像12_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Call frm_child_iamge_properties(Me.图像12.name)
End Sub
Private Sub 图像13_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Call frm_child_iamge_properties(Me.图像13.name)
End Sub

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

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

GMT+8, 2024-12-27 15:21 , Processed in 0.058840 second(s), 16 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

返回顶部