I need to check all TabPages in TabControl, and if none of them have been found with certain text, then perform on a specific action.
I tried this:
foreach (TabPage item in editorTabControl.TabPages) { if (item.Text != filesList.SelectedItems[0].Text) { } } And the condition is fulfilled at the first village.