How do I access a control on a Tab Page from a Tab Control?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a reference to a TabControl and I want to access the methods (Clear in this case) of a control on one of the Tab Pages. How do I do it

I thought it was

tcTabControl.TabPages(0).Controls(0),Clear(

But that doesn't work. Help.
 
Dim lstBox as ListBox

lstBox = CType( tcTabControl.TabPages(0).Controls(0) , ListBox )
lstBox.Clear

VJ


Sean said:
I have a reference to a TabControl and I want to access the methods (Clear
in this case) of a control on one of the Tab Pages. How do I do it?
 
Back
Top