static string GetTabControlState(TabControl tab) { return tab.GetType().ToString() + ":" + tab.SelectedIndex.ToString(); }