Hello All,
I want to run my VB6 application in background or invisible to user.
How can we achieve it?
Hello All,
I want to run my VB6 application in background or invisible to user.
How can we achieve it?
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