English 中文(简体)
探究"失踪"的形式为何?
原标题:Detect why a Form "disappears"?

在一个大型的旧应用程序中,我必须修正,我有两种形式,如图像(一个Notpad示例)中的两种形式。

""https://i.sstatic.net/pGC2U.jpg" alt="此处输入图像描述"/ >

当我离开(用鼠标指针)我的小区域时,该表将“消失”,有些像点击大窗体并激活它。

但我没有点击 X, X 标题也没有活动, 但是小Y 形式会向后退, 不再可见 。

如何追踪问题?

任何 reize , Activated , deactivate , LostFocus , GotFocus , presentFeed backack , Mdichild Activate , 在我离开 Y 区域时, 这两种表格中的任何一种都没有被追踪到...

问题回答

尝试覆盖 < a href=> "" "http://msdn.microsoft.com/ en-us/library/ system. windows.forms.control. onvisible changed.aspx" rel = “nofollow” > On VeabilableChanged of Form Y, 并设置此上的断点。 在调试时复制情况并检查属性表。 可见于错误, 检查时检查比调用堆 。

据我所知,这是整个系统的事情;我认为它叫做“强势a href=”“http://technet.microsoft.com/en-us/library/cc957204.aspx” rel=“不跟随”>活动窗口跟踪。

可能想试着弄坏它

进行多次测试后,我发现了问题: " 强" 代码Y < /code < /code > / " 强 " 窗体是 deactivate ,由 " 强 " X < /code < /code < / defense > > 表示,因为在 MouseMove 事件上, X 产生了关于(X) 窗体内特定控件的焦点()...

感谢大家的帮助!

(PS.

您可以将 Y 顶部属性设置为 True 。 这样它就不会在 X 后面消失 。 (前提是 X 的最大属性不真实 。)





相关问题
Bring window to foreground after Mutex fails

I was wondering if someone can tell me what would be the best way to bring my application to the foreground if a mutex was not able to be created for a new instance. E.g.: Application X is running ...

How to start WinForm app minimized to tray?

I ve successfully created an app that minimizes to the tray using a NotifyIcon. When the form is manually closed it is successfully hidden from the desktop, taskbar, and alt-tab. The problem occurs ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

Handle DataTable.DataRow cell change event

I have a DataTable that has several DataColumns and DataRow. Now i would like to handle an event when cell of this DataRow is changed. How to do this in c#?

Apparent Memory Leak in DataGridView

How do you force a DataGridView to release its reference to a bound DataSet? We have a rather large dataset being displayed in a DataGridView and noticed that resources were not being freed after the ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

WPF-XAML window in Winforms Application

I have a Winforms application coded in VS C# 2008 and want to insert a WPF window into the window pane of Winforms application. Could you explain me how this is done.

热门标签