在启动时隐藏表单[c#] [英] Hiding form on startup [c#]

查看:104
本文介绍了在启动时隐藏表单[c#]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不要生气!我用谷歌搜索过,但我得到了答案 - 但主要是不确定的答案。


我明白接受新Form1()的论证(application.run())是我应该做的事情做。但是Form1中的代码不会被执行,不是吗?我不太明白该怎么做。

解决方案

好吧,你可以把

展开 | 选择 | Wrap | 行号



好​​吧,你可以把

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


控制台应用,也许?取决于具体功能。它只是你运行一次,它结束了吗?


Don''t get angry! I have googled and I have come across answers - but mainly inconclusive answers.

I understand that taking the argument for new Form1() away (application.run()) is something I should do. But then the code in Form1 wouldn''t be executed, would it? I don''t quite understand how to go about doing this.

解决方案

Well, you could just put

Expand|Select|Wrap|Line Numbers


Well, you could just put

Expand|Select|Wrap|Line Numbers


Console app, maybe? Depends on what the exact functionality is. Is it something you just run once, and it finishes?


这篇关于在启动时隐藏表单[c#]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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