是否可以找到导致窗口停用的原因?
在我的应用程序中,我打开了一个窗口。我单击一个菜单项。窗口停用事件的代码是:
private void HostWindow_Deactivated(object sender, EventArgs e)
{
// Can we check here which control is clicked
}
在执行停用事件内的代码之前,我需要检查单击了哪个菜单项。有什么办法吗?
In my application, I have a window open. I click a menu item. The code for the window deactivated event is:
private void HostWindow_Deactivated(object sender, EventArgs e)
{
// Can we check here which control is clicked
}
I need to check which menuitem is clicked before I execute the code inside the deactivated event. Any way of doing that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论