标签: vb6 user-controls visibility
如何自检用户控件的可见性?
没有UserControl.visible或类似的属性。
UserControl.visible
答案 0 :(得分:1)
您需要将userControl强制转换为VBControlExtender
VBControlExtender
Dim oVBControlExtender As VBControlExtender Set oVBControlExtender = UserControl.Extender If oVBControlExtender.Visible = True Then 'Code Here EndIf