Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically running

Status
Not open for further replies.

hariram55

Programmer
Jul 28, 2006
10
US
hi friends,

I made a program in vb.net and i want to run that program each time computer starts. I set up all excpet, i need to press "start" botton of my program to start it.
Can anybody will help me " how can i run my program (automatically) without pressing start bottom (manually) ?"

thank you
 
Do you know where to find the .exe that your project has created?

This is saved as ...ProjectFolder\bin\Project.exe

For example if my projectfolder is C:\myCalculator\
The executable file will be C:\myCalculator\bin\myCalculator.exe

You should be able to add a shortcut to this file to your startup folder.
 
Instead of having your code execute from the button press event(pressing the statr button), move it to the load event of your start-up form in your application.

Another option to consider is making the application a service, if it does not need to interact with the user
 
Thanks friends,
Actually I was looking for solution which will run program automatically without pressing button. I mean to say I got some code in “start button”, how can I make such a way that whenever I run my application (currenttemp.exe) the “start button” will be pressed automatically (by my program) – the program should start working not waiting for user to press “start button”, if in middle user want to stop the program without quitting it and want to start again then the button “start “should work in normal way.

Hope to hear from you friends.
 
Move the code from your "start button" press event to your form.load event of the main form in your application. This way when the application starts, the code will run without any user interaction.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top