打开新窗户的标准 [英] Standard for opening new windows

查看:91
本文介绍了打开新窗户的标准的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual C#中显示应用程序中其他窗口的标准是什么?

我是否应该创建一个新的Form将对象放入其中?那我怎么显示它们呢?还是应该留在Form1表单中执行此操作?

What is the standard in Visual C# to show other window in the application?

Should I just create a new Form put my objects in there? How can I display them then? Or should I stay in the Form1 Form to do this?

推荐答案

通常,每种类型的窗口都需要显示一个表单.当然,如果在您的应用程序中有意义,则可以显示同一表单的多个实例.您可以通过调用其Show或ShowDialog方法来显示表单.
You typically have one form per type of window you want to show. You can of course show multiple instances of the same form if that makes sense in your application. You display the form by calling its Show or ShowDialog method.


这篇关于打开新窗户的标准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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