Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表单,里面只有一个 ListView。ListView 设置为显示子项的工具提示(在详细信息视图中)。如果表单不是最顶部的,则工具提示显示正常。当我将表单的 TopMost 设置为 true 时,工具提示出现在窗口“后面”。
是否需要设置任何其他属性/属性组合才能使工具提示在表单上像往常一样显示?
这似乎是a)设计或b)错误(取决于您相信谁以及您对这个问题的了解)。
由于 ToolTips 本质上是 TopMost 窗口,而您的 Form 是 TopMost 窗口,因此在 O/S 级别对于真正显示为 TopMost 的内容存在一些争议。
见这里:http ://www.itags.org/dotnet/169331/