Activate ComboDropDown.PopupContainer through PreviewKeyDown Event

I have a ComboDropDown that contains a TreeView as the PopupControl. I want to be able to open the ComboDropDown and display the TreeView programatically by using the PreviewKeyDown or another KeyPress Event, when the user presses the Down Arrow on the keyboard.

PopupContainer.ShowPopup(control.Location) doesn't seem to work. Below are other options I've tried:

- PopupContainer.Show()

- PopupContainer.Controls[0].Select

- PopupContainer.Select()

- PopupControl.Select

- TreeView.Select


1 Reply

BS Bhaskar Suresh Syncfusion Team December 12, 2024 10:34 AM UTC

Hi Adrian Negrillo,


Please follow up on the below forum link as this forum's query is same as the one in the below one. Hence, we are marking this as closed.

Activate ComboDropDown.PopupContainer through PreviewKeyDown Event | WinForms Forums | Syncfusion


Regards,

Bhaskar Suresh


Loader.
Up arrow icon