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.
首先对我的英语感到抱歉。我真正想学习的是一种让我的 TopMost 应用程序“理解”它背面有东西的方法,这样我就可以让它降低她的不透明度百分比。
希望你能理解我的问题。;) 问候
在调用表单时,您可以将参数传递给其构造函数,以确定是否已经打开了其他表单,如果是,则可以降低最顶层表单的不透明度。要找出打开了多少表格,您可以使用
if(Application.OpenForms.Count > 1) this.Opacity = 0.75; else this.Opacity = 1.0;
希望这有帮助