Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
TextBox現在フォーカスされている ID を取得するにはどうすればよいですか? フォーカスされていない場合は、null 値を返す必要があります。
TextBox
注: テキスト ボックスのみをチェックする必要があります。
TextBox focusedTxt = Controls.OfType<TextBox>().FirstOrDefault(x => x.Focused);