如何动态关闭Windows窗体? [英] How to dynamically close a Windows Form?

查看:91
本文介绍了如何动态关闭Windows窗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家早上好.单击按钮时如何动态关闭程序中的窗口窗体? X |

Good morning to everyone. How to dynamically close the window form in the program when a button is clicked? X|

推荐答案

晚上好.
我会在按钮的Click事件处理程序中调用表单的Close方法.
:)
Good evening.
I would call the form''s Close method in the button''s Click event handler.
:)


我不想变得粗鲁无礼,但认真地,买一本C#初学者的书,那样您会更快地得到答案,并且您会理解许多其他内容,例如框架,泛型,类,变量,如何执行"Hello World"应用程序等.
我已经在另一线程中向您推荐了两本书,如果买书超出了范围,那么互联网上会有一个很棒的搜索引擎,叫做....是的!您说得对....GOOGLE !!!如果您不喜欢Google,也可以尝试使用Bing或Yahoo,而且我敢肯定,您会在其中找到诸如"close form c#"之类的简单单词的答案,然后尝试一下,您会发现您可以拥有多快的速度您的答案

:cool:
I don''t want to be rude or anything, but seriously, buy a beginners book of C#, that way you will get your answers in a faster way and you will understand many other things, like the framework, generics, classes, variables, how to do a "Hello World" application, etc.
I''ve already suggested two books to you in another thread, and if buying a book is out scope, there''s a wonderful search engine in the internet that is called.... yes!!! you''re right.... GOOGLE!!! if you don''t like Google, you can try Bing or Yahoo too and I''m sure you will find your answers there with simple words like "close form c#" give it a try and you will see how fast you can have your answers

:cool:


这篇关于如何动态关闭Windows窗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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