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

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.
 
V

VJ

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?
 

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