TextBox firstTextBox = this.Controls.OfType<TextBox>().FirstOrDefault(); if(firstTextBox != null) firstTextBox.Focus();