Refer to tab on tabcontrol

  • Thread starter Thread starter John
  • Start date Start date
J

John

I have a form with a tab control on it. I would like to be able to make a
listbox invisible if I move off of the first tab. The tabcontol is named
tbctl10 and my listbox is called List22

How can this be coded?

Thanks
 
John said:
-----Original Message-----
I have a form with a tab control on it. I would like to be able to make a
listbox invisible if I move off of the first tab. The tabcontol is named
tbctl10 and my listbox is called List22

How can this be coded?

Thanks
Hi John,
use the tab control change event...
the first tab has value=0

private sub tbctl10_change()
list22.visible= not (tbctl10.value >0)
end sub

luck
Jonathan
 
John said:
I have a form with a tab control on it. I would like to be able to make a
listbox invisible if I move off of the first tab. The tabcontol is named
tbctl10 and my listbox is called List22

How can this be coded?

In the Change event of the TabControl

Me.List22.Visible = (Me.tbctl10.Value=0)
 
Back
Top