Windows Vista VB6 SP6
I have a control array where all properties are being set except for Visible I try to set it. When the line executes it setps over and appears to execute successfully, the line below (Enabled) behaves the save except that the Enabled value is set and the Visible property remains set at False.
Has anyone experienced this before and if so di you manage to resolve it and how?
With frm.picSG15But(intCounter)
intButtonCounter = intButtonCounter + 1
.Visible = True
.Enabled = True
.Tag = cntrol.Tag & ";Visible"
End With
With frm.SG15Blbl(intCounter)
Set .Container = frm.picSG15But(intCounter)
.Caption = Trim(cntrol.Caption)
.Visible = True
.Tag = cntrol.Tag & ";Visible"
End With
End If
I have a control array where all properties are being set except for Visible I try to set it. When the line executes it setps over and appears to execute successfully, the line below (Enabled) behaves the save except that the Enabled value is set and the Visible property remains set at False.
Has anyone experienced this before and if so di you manage to resolve it and how?
If Len(Trim(cntrol.Caption)) > 0 ThenWith frm.picSG15But(intCounter)
intButtonCounter = intButtonCounter + 1
.Visible = True
.Enabled = True
.Tag = cntrol.Tag & ";Visible"
End With
With frm.SG15Blbl(intCounter)
Set .Container = frm.picSG15But(intCounter)
.Caption = Trim(cntrol.Caption)
.Visible = True
.Tag = cntrol.Tag & ";Visible"
End With
End If