可能是C#中此问题的可能原因 [英] What may be the possible cause for this problem in C#
问题描述
我打开了两个EXE文件。
当我点击另一个时,获得焦点,其他一些焦点。
通过这种方式,当我们获得焦点时,我想在两个EXE中刷新GridView。
我所做的是我已经在表格聚焦和离开事件。
最后,为了检查这个过程,我创建了一个消息框来显示详细信息,因为加载EXE文件时断点不可用。
但我没有收到任何消息框,我的刷新代码根本无法使用。
什么可能是可能的原因。
我的问题可能对编程天才的人来说很愚蠢。但是我需要摆脱这个问题。
I have two EXE files open.
When I click on the other one gets focus and other leaves focus.
By this way I want to refresh GridView in Both EXE when they get focus.
What I did was I have written the refreshing code in the FORM FOCUS AND LEAVE EVENT.
Eventually to check this process I created a message box to show the details since break points are not available while loading EXE files.
But I didn't get any message box and my refreshing code didn't work at all.
What may be the possible cause.
My question may be silly to Programming Genius people. But I need to get rid of this problem.
推荐答案
表单焦点只能在一个应用程序中运行(在该应用程序中切换表单时)和切换应用程序表单时已经集中注意力了。
尝试在计时器$ c上刷新
GridView
$ c>而不是。
Form focus only works within one application (when switching between form within that application) and when you switch applications the form is already focused.
Try refreshing yourGridView
on aTimer
instead.
这篇关于可能是C#中此问题的可能原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!