public bool SelectTabInPropertyGrid(string tabName)
{
int tabIndex = 0;
foreach (System.Windows.Forms.Design.PropertyTab propertyTab in propertiesGrid.PropertyTabs)
{
if (propertyTab.TabName == tabName)
{
if (propertyTab != propertiesGrid.SelectedTab)
{
Hacks.SetSelectedTabInPropertyGrid(propertiesGrid, tabIndex);
}
return true;
}
tabIndex++;
}
return false;
}