Refer to tab on tabcontrol

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
 
J

Jonathan Parminter

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
 
R

Rick Brandt

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top