且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Ctrl + Tab在其他Mdichild形式之间切换时,如何防止某个Mdichild形式获得焦点/激活?

更新时间:2022-04-28 08:51:47

在这里看看答案:
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