Event Issue
IT & Infrastructure
1
Posts
1
Posters
0
Views
1
Watching
-
Hi If there is not any button control on winform then forms key press event is fires But if we place button control on winform then focus directly goes to button and keypress event of the form does not get fired.What can be the reason. It can be easily replicated by just writing any code in keypress event of windows form there should not be any control on the form then its keypress will be fired, now just place a button control u will see form's key pressed is not getting fired. It seems focus issue.Can anyone advice. Atul Kumar