0

I am using a WindowsFormsHost to host a WF ComboBox in my WPF application

I'd like to set the focus of the keyboard to be inside of the ComboBox's TextBox via my C# code

I've tried things like myComboBox.focus() but haven't had any luck

Can anyone point me in the right direction? Thanks

mmartinez04
  • 323
  • 1
  • 1
  • 4

1 Answers1

0

Peek into this question: Get and restore WPF keyboard focus

TLDR: Consider using Keyboard.Focus(System.Windows.IInputElement element) method.

Here is another article to read.

Arli Chokoev
  • 521
  • 6
  • 22