Check ToolStripMenuItem’s DropDownItems and exclude ToolStripSeparator

foreach(object obj in item.DropDownItems){

if(obj is ToolStripMenuItems){

ToolStripMenuItem itemDrop = obj as ToolStripMenuItem;

if(reader1.GetString(6) == itemDrop.Name){

itemDrop.Enabled = true;

}

}

else if(obj is ToolStripSeparator){

continue;

}

}