I have two overlapping grids.
<Grid>
<Grid Name="gridMain" KeyDown="GridMain_KeyDown">
</Grid>
<Grid Name="gridSecond" KeyDown="GridSecond_KeyDown">
</Grid>
</Grid>
Once I’m done with main screen, I disable (make invisible) the main screen and enable (make visible) the second screen. I also have separate KeyDown event handler for each Grid. When the second grid is visible, the GridSecond_KeyDown is never fired. Can someone tell me why? And how to fix it?
Resolved. In retrospect I didn’t know enough at the time to ask the right question….
KeyDown event not firing with .NET WinForms?