Retrieve TabPage from ArrayList
Posted on 2009-05-06
I have been looking on the net for a way to hide/show tabpages in a tabcontrol.
I found a topic on adding the tabpages to an arraylist so they can be easily retrieved after being removed.
I have them hiding/removing using
Private aHideTabPages As New ArrayList()
Public Sub HideTab(ByVal t As Object)
'Remove page from tabcontrol
But how do I bring back the correct tab?
I looked all over the net trying to find a solution, with no luck, so I tried ---
Private Sub ShowTab(ByVal t As Object)
This doesn't work.
Please provide an example (no links please) of how I would retrieve the correct tabpage back from the arraylist.