namespace bnhtrade.gui { public partial class Form1 : Form { bool loadedTabIndex1 = false; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void tabPage3_Click(object sender, EventArgs e) { } private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { int index = (sender as TabControl).SelectedIndex; if (index == 1) { } } } }