c# - How to focus the first control from the TableLayoutPanel on new button click - Stack Overflow

PHOTO EMBED

Sat Oct 21 2023 03:11:54 GMT+0000 (Coordinated Universal Time)

Saved by @javicinhio #cs

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

https://stackoverflow.com/questions/13757465/how-to-focus-the-first-control-from-the-tablelayoutpanel-on-new-button-click