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.
ComboBox をクリックすると、ウィンドウ内で選択されます。javascript の blur() と同等の機能を実行する方法はありますか
直接ではありません。ただし、コンボボックスまたは別の要素のルートの親に焦点を合わせてみることはできます。
comboBox1.TopLevelControl.Focus();
また
someControl.Focus();
この同様の問題があり、コンボボックスを無効にして再度有効にすることで修正できました。
comboBox1.Enabled = false; comboBox1.Enabled = true;