views:

32

answers:

2

Hello All,

I want to run my VB6 application in background or invisible to user.

How can we achieve it?

A: 

This might get you started: http://www.smsoft.ru/en/ntservice.htm

SteveCav
+2  A: 

Just write it as a formless application, or else write it to start in Sub Main() and then Load but don't Show your main Form.

Module1.bas

Option Explicit

Private Sub Main()
    Load Form1
End Sub

Form1.frm

Option Explicit

Private Sub Form_Load()
    Timer1.Interval = 5000
    Timer1.Enabled = True
End Sub

Private Sub Timer1_Timer()
    If MsgBox("Hello", vbOKCancel) = vbCancel Then Unload Me
End Sub
Bob Riemersma
+1 Oh look, child's play in vb6 too :)
MarkJ