表单实例 [英] form instance

查看:80
本文介绍了表单实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想运行一个表单并立即关闭它?

I want to run a form and have it close immediately?

我想要的表格中有计算。

There are calculations in the form i want done.

谢谢,jordan

推荐答案

您可以通过调用this.Close()来关闭其代码中的表单。 "这个" bit是多余的,但通常留下来表明表单正在关闭。

You can close a form inside its code by calling this.Close(). The "this" bit is redundant, but usually left in to make it clear that the form is closing itself.

但如果我是你,我会认真考虑将计算从表单中移出并进入单独的类。

But if I were you, I would seriously consider moving the calculations out of the form and into a separate class.


这篇关于表单实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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