I have a winforms tab contol on my main form. It has, say, 5 tab pages. (tabPage1, tabPage2 etc)
On myTabControl..TabPages[tabPage1] I have added a custom UserControl (userControl1) with a Button (button1) on it.
When I click button1 I want to clear the controls on tabPage3, Add() a new UserControl to that TabPage, then select tabPage3.
How do I wire up the button1_Click event handler to talk to the TabControl and select the appropriate tab?
Should be easy enough, I'm just missing something here..