标题:ControlState具体是怎么用的 要怎么定义
取消只看楼主
shenyang1141
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2016-5-21
结帖率:0
 问题点数:0 回复次数:1 
ControlState具体是怎么用的 要怎么定义
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.key
Case "add"
    ControlState True
    Adodc1.Recordset.AddNew
    For i = 1 To Text1.UBound
        Text(i) = ""
        Text(i).Locked = False
    Next i
    Text1(0).SetFocus
Case "save"
    Adodc1.Recordset.Update
    ControlState False
Case "cancel"
    ControlState False
    For i = 1 To Text1.UBound
        Text(i) = ""
        Text(i).Locked = True
    Next i
Case "close"
    Unload Me
End Select
End Sub

搜索更多相关主题的帖子: cancel False Text1 close 
2016-06-11 23:42
shenyang1141
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2016-5-21
得分:0 
2016-06-11 23:44



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-465854-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.330135 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved