使用Ctrl + Tab在其他Mdichild形式之间切换时,如何防止某个Mdichild形式获得焦点/激活? [英] How to prevent a certain mdichild form from getting focus/activation when switching between other mdichild forms using Ctrl+Tab?

查看:86
本文介绍了使用Ctrl + Tab在其他Mdichild形式之间切换时,如何防止某个Mdichild形式获得焦点/激活?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的mdi应用程序中,我有四种mdichild形式,其中一种被用作背景并包含一些控件.
使用Ctrl + Tab在其他Mdichild形式之间切换时,如何防止背景Mdichild形式获得焦点/激活?

换句话说,如何从Ctrl + Tab序列中跳过此背景mdi子窗体?并使其z顺序成为最后一个,以便在它们之间切换时不会隐藏其他mdichild形式?

In my mdi application i have four mdichild forms, one of them is used as a background and holding some controls..

How to prevent this background mdichild form from getting focus/activation when switching between other mdichild forms using Ctrl+Tab?

In other word how to skip this background mdi child form from the Ctrl+Tab sequence? and also make its z-order to be the last one so that it doesn''t hide other mdichild forms when switching between them?

thanks in advance.

推荐答案

在这里看看答案:
http://social.msdn.microsoft.com/论坛/en-AU/winforms/thread/d19e23ec-11f5-4ce5-9c1e-98b33becb9d5 [
Have a look at the answer here:
http://social.msdn.microsoft.com/Forums/en-AU/winforms/thread/d19e23ec-11f5-4ce5-9c1e-98b33becb9d5[^]

Good luck!


好吧,不要这样做.您要尝试做的就是滥用MDI设计.而且,MDI本身就是合理UI设计的滥用.谁认真使用MDI?

很抱歉没有回答您的问题;但是请听取一个友好的好建议:不要让每个人都强烈反对使用此功能,首先是Microsoft.不要再因不自然的问题折磨自己,而要用丑陋的可用性和外观来吓users用户.

参见:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages [在WPF中使用MDI窗口的问题 [ ^ ],
提供错误的MDIContainer [
Well, don''t do it. What are you trying to do would be the abuse of MDI design. Moreover, MDI itself is the abuse of reasonable UI design. Who seriously use MDI?

Sorry for not answering your question; but listen to a good friendly advice: don''t use this feature strongly discouraged by virtually everyone, first of all by Microsoft. Stop torturing yourself by unnatural problems and scaring off your users by ugly usability and presentation.

See:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
Question on using MDI windows in WPF[^],
MDIContainer giving error[^].

My past answers references above describe some reasonable alternative. See also the related discussions.

—SA


这篇关于使用Ctrl + Tab在其他Mdichild形式之间切换时,如何防止某个Mdichild形式获得焦点/激活?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆