Ok, so I'm having a slight issue and I can't seem to figure it out.
Here is the setup...
Toolstrip is inside of a toolstrip container on a windows form. Those toolstrip buttons cause different custom controls to load into the main pane on the toolstrip container.
For some reason when a combobox (which is inside a custom control loaded in the main pane) is active and the enter key is depressed... it's triggering one of my toolstrip buttons to run through it's click_event! Which is then loading one of the other controls. I have keypreview set to true on my main form, and I am catching some of the keys commands for shortcuts, but I don't have anything setup for the "enter" button. I am baffled as to how it could be triggering that toolstripbutton to click. The toolstrip isn't even the active control (that I know of...) at the time... my combobox dropdown is open. I would post code, but I don't have any code culprit that I could find... I know this isn't much to go on, but I'm completely at a loss and have no idea where to even start.
It's the same toolstrip button click event every time. Is there a property or something that I'm missing that may be causing this button to be triggered on enter?
I tried to remedy this by tying a button from each specific control to the mainforms acceptbutton property which seems to work fine if the dropdown is closed. But if the dropdown is open, it's still calling the toolstripbutton's click event...
Is it possible that the toolstrip for some reason has not lost focus when the dropdown is open?
Here is the setup...
Toolstrip is inside of a toolstrip container on a windows form. Those toolstrip buttons cause different custom controls to load into the main pane on the toolstrip container.
For some reason when a combobox (which is inside a custom control loaded in the main pane) is active and the enter key is depressed... it's triggering one of my toolstrip buttons to run through it's click_event! Which is then loading one of the other controls. I have keypreview set to true on my main form, and I am catching some of the keys commands for shortcuts, but I don't have anything setup for the "enter" button. I am baffled as to how it could be triggering that toolstripbutton to click. The toolstrip isn't even the active control (that I know of...) at the time... my combobox dropdown is open. I would post code, but I don't have any code culprit that I could find... I know this isn't much to go on, but I'm completely at a loss and have no idea where to even start.
It's the same toolstrip button click event every time. Is there a property or something that I'm missing that may be causing this button to be triggered on enter?
I tried to remedy this by tying a button from each specific control to the mainforms acceptbutton property which seems to work fine if the dropdown is closed. But if the dropdown is open, it's still calling the toolstripbutton's click event...
Is it possible that the toolstrip for some reason has not lost focus when the dropdown is open?