J
James Wong
Hi! everybody,
I want my control to have different behavior if it got focus by mouse click
from by keyboard (i.e. Tab or Shift-Tab). I found that GotFocus event
always comes before MouseDown even the I click the control directly. My
problem is that I don't know whether I should do something which is
exclusive for keyboard only under GotFocus event since I don't know how the
control got focus.
On MS KB Article 75411, it seems to be solution of my problem. However, it
uses Windows API and I'm looking for a more "modern" (esp. on .NET
Framework) way to do it. Does anybody know the answer?
Thanks for your attention and kindly advice!
Regards,
James Wong
I want my control to have different behavior if it got focus by mouse click
from by keyboard (i.e. Tab or Shift-Tab). I found that GotFocus event
always comes before MouseDown even the I click the control directly. My
problem is that I don't know whether I should do something which is
exclusive for keyboard only under GotFocus event since I don't know how the
control got focus.
On MS KB Article 75411, it seems to be solution of my problem. However, it
uses Windows API and I'm looking for a more "modern" (esp. on .NET
Framework) way to do it. Does anybody know the answer?
Thanks for your attention and kindly advice!
Regards,
James Wong