怎样把窗体模式打开后继续执行代码Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
With Toolbar1
Select Case Button.Index
Case 2
frmfind.Caption = "选择单据"
frmfind.Show 1
Toolbar1.Buttons(4).Enabled = True
End Select
End With
以上很简单的代码,在frmfind窗体关闭后,要设置工具栏的第4个按钮可用。关闭frmfind窗体后,怎么Toolbar1.Buttons(2).Enabled = True就是执行不了呢。
但在逐语句调试状态下,就可执行。究竟错在哪呢?
求高手指点。
文章作者:中国程序员交流社区
本文地址:http://www.51dzsw.cn/seo171807.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!2,359