Is there anyway to reference a tabPage by name. I am trying to pass a tabPage created at runtime into a function, but I can't figure out how to reference the tab by name.
Let's say I have two tabs on my tab control with the .name property of "Apples", "Oranges", "Bananas".
After adding the tabpages to my form
myTabControl.TabPages = Apples
myTabControl.TabPages = Oranges
myTabControl.TabPages = Bananas
I am wondering if there is anyway I can refer to a tab w/o having to use its index of the TabControl (BTW, I don't even know how to get what index position a tab page has in the tab control)
Is there any getElementByName equivalent that I could use?