如何在启动时启动我的程序 [英] How Do I Make My Program Launch At Startup

查看:90
本文介绍了如何在启动时启动我的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧我知道如何让窗体启动窗口,我想要的是一个不打开(不可见)的窗体并启动一个功能,比如说你有一个按钮,你点击它打开第二个窗体,所以当电脑在启动时启动时,而不是用按钮显示你的第一个表格,它显示你的第二个表格(按钮自动点击) - 我正在考虑在表格加载上使用它:事件将立即尝试但是其他任何建议都很难实现吗? :)

alright i know how to get the form to startup with windows, what i want is a form that doesnt open (isnt visible) and launches a function , like lets say u have a button and u click it to open a second form , so when the pc launches at startup , instead of showing u the 1st form with the button it shows u the second form(button clicked automaticly) - i was thinking of using it on the form loading :"event" going to try it now but any other suggestions are much apreciated? :)

推荐答案

考虑为您的应用程序创建一个arg列表,并使用列表中的值来设置一个标志。



您可以使用它来自动启动该功能并执行其他程序流控制(如果存在的话)。
Consider creating an arg list for your application and use a value in the list to set a flag.

You can use it to automatically launch the function and do the other program-flow control things you'd like to do if it's present.


这篇关于如何在启动时启动我的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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