you can make it run in the background by merely hiding the form. If you stick a timer on the form, then you can have it cycle to do something every so often. In the form load's procedure just add:
me.visible = false
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
Ok, Thanks for telling me that, and sorry these questions don't have anything to do with the topic but, what would I put in if I wanted my program to run when windows starts up? Thanks.
You can make your program edit the registry on form load.... and then call your EXE. It's a good idea to give the user this option in an option form, or msgbox, so they know you are going to do this (I hate when programs try to force startup on me...)
dim wsh
set wsh = createobject("WScript.Shell")
Wsh.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\MyProgName", "c:\path2yourprogram.exe"
Obviously You need to change 2 things in the last line... you need to change "MyProgName" to whatever the name of your application is.... and you need to change "c:\path2yourprogram.exe" to the path where your program is installed. That should have it load on startup.
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
Go to start->run and type 'regedit'
Now find the folder in your registry:
HKLM\Software\Microsoft\Windows\CurrentVersion\Run\
and remove the key that your program wrote here.
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
nick already answer your question. go to registry and delete the current file there.
or you can use msconfig manager.
go to start->run and type 'msconfig'.
click on startup tab then enable the files on list.
Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444