I am using Winforms dialog with multiple tabs (tab1
and tab2
). Both of the tabs have KeyPreview = true
.
On tab1
when I hit W
on my keyboard, the KeyDown
(for tab1
) event triggers successfully. However upon switching to tab2
and then back to tab1
, the same key does not trigger anymore.
Any idea on what is causing the problem?