protected override void CreateHandle ()
{
base.CreateHandle ();
tab_pages = new TabPageCollection (this);
m_helper = new TabViewHelper(this);
m_view = m_helper;
selected_index = (selected_index >= TabCount ? (TabCount > 0 ? 0 : -1) : selected_index);
if (TabCount > 0) {
if (selected_index > -1)
this.SelectedTab.SetVisible(true);
else
tab_pages[0].SetVisible(true);
}
}