I need to do something similar:
1. Run vb prog as a service
2. When time reaches a specified time (e.g. 12:43 pm), play a file.
I too would like to know how to run a prog as a service (with a little icon in the task bar so that a user can always close the prog if they desire).
Thanks
How do we make the program run all the time (system tray!)
I like the idea of having it go to sleep, wake up every XX minutes, and then go back to sleep again.
How can that be done?
The more info the better.
Thanks guys...
Not the most elagant, but will work!
Private Sub Form_Load()
Dim fso, finput, strFileAsString
Set fso = CreateObject("Scripting.FileSystemObject")
Set finput = fso.OpenTextFile("C:\...\abc.txt")
Do While (finput.AtEndOfStream <> True)...
Also ensure that the keyboard you are booting up with is a PS2 type and not USB. Some bios don't recognize USB ports, and the system would only realize that you have a usb keyboard when Windows loads up (along with it's usb drivers).
Try connecting an older PS2 keyboard and hit...
I tried running the following piece of code:
Private Sub Command1_Click()
Dim rtn() As String
Dim iX As Long
rtn = ReturnArray(10)
For iX = 0 To UBound(rtn)
Debug.Print rtn(iX)
Next
rtn = ReturnArray(7)
For iX = 0 To UBound(rtn)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.