Please help,

If i compile my project and use the following sub main as the startup object:

Sub Main()
Dim dlg As New frmStkEnq
dlg.Show 1
Call UnloadAllForms
Set dlg = Nothing
End
End Sub


The project does not appear on the taskbar.

If i remove this code and then say that the form "frmStkEnq" is the startup object then the project appears on the taskbar, why is this????

Has anybody come across this problem before, if so please help, I am using VB5 (SP3). Does this problem happen in VB6 (SP4), have not tried hopefully someone has a quick answer.

Thanks In Advance.