I have an instance of a TabPage.
I want to ask that TabPage:
"Who's your TabControl?"
That is, I wish to query a TabPage to get a reference to the TabControl that contains it.
I have an instance of a TabPage.
I want to ask that TabPage:
"Who's your TabControl?"
That is, I wish to query a TabPage to get a reference to the TabControl that contains it.
Try to cast the
Tabpage.Parentto aTabControl: