在打开的Windows窗体之间切换 [英] switching between opened Windows forms

查看:113
本文介绍了在打开的Windows窗体之间切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想轻松切换打开的表单。像Windows操作系统上的窗口之间的切换,我应该使用MDI表格,还是可以在标准表格上进行?

I want switch between opened form easily. something like switch between windows on Windows OS should I use MDI Form or I can do it on standard forms too?

推荐答案

您不必使用MDI。此外,使用MDI是微软和许多其他人不鼓励的,这将是增加自己问题和吓跑大多数客户的可靠方法。相反,您可以考虑在单个表单上呈现相同内容的其他不同方法,例如 TabControl



如果您仍想要多个表格并在此之间切换,则没有什么可以阻止您。所有表单都是应用程序所知。没有任何嵌入式预定义方法来切换它们,只是为了给你设计师的自由。例如,您可以在每个表单上处理键盘事件,并通过Ctrl + Tab,Ctrl + Shift + Tab对表单进行随机播放。大多数传统方法是在主菜单中的 W indow项下列出所有打开的表单。任何此类选项的实施都是微不足道的。



-SA
You don't have to use MDI. Moreover, using MDI is discourages by Microsoft and many others, it would be the sure way to add yourself problems and scare off most of your customers. Instead, you can consider other different approaches for presenting the same content on a single form, such as TabControl.

If you still want to have several forms and switch between then, there is nothing to prevent you. All the forms are known to your Application. There is no any embedded predefined method to switch them, just to give you the designer's freedom. You can, for example, handle keyboard events on each forms and shuffle the forms by Ctrl+Tab, Ctrl+Shift+Tab. Most traditional approach is having the list of all open forms in the main menu, under the item "Window". Implementation of any of such options would be pretty trivial.

—SA


这篇关于在打开的Windows窗体之间切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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