2
Vote

How to control focus when Popup is shown

description

Hello Lucasz,
I am just playing around with your library and it looks like you have done a very nice job with it. I have a question that will hopefully be easy for you to answer.

What I want to do is to display a popup window when the user enters, or types in a TextBox. The trouble I am having is that the focus goes to the Popup control so no keys strokes are processed by the textbox. I have tried setting FocusOnOpen = false; but that does not seem to help.

Is there a way of having the focus remain on a different control while a Popup control is being show. Basically I want to show a DataGridView in a popup and have a textbox (or combobox) in the main form be used for filtering the contents.

Best,
Jonathan

comments