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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I make a formless application run when windows starts?

Status
Not open for further replies.

barant

Programmer
Aug 6, 2003
12
US
Hi, im trying to create something very basic like when a user presses F9 to to something like open internet explorer or to open the cd rom drive. What type of project do I create, and how do I make it run in the background when windows starts?
 

You can do this with a standard exe project, but it sounds like you want to create a "windows service". Which by the way VB is not really suited for but there are some work arounds.

When you create your standard exe project you will want to add a module and a sub main. Then change the project>properties Start Up Object to sub main.

To accomplish what you want you will need to create a "hook" so you can listen in on the windows keypresses.

Now the easiest way to get your program to start up when windows does is to "create a shortcut" to your exe in the startup folder. There is another way to do this depending upon which OS you are running.

The words above in quotes would be some good search terms for you to search this site with to get you started.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top