-
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.
-
Showing in taskbar goes for windows, not projects, if you don't have showintaskbar property set for a form, it wont show up in the taskbar, however this also happens when your window is invisible, which is when you load an instance of it. I'm not sure but does that code make your forms invisible?
-
Modal forms are not shown in the taskbar, if you do not load it modally it should show up.
Hope this helps
-
WHY??????
Does this happen in VB6 (SP4) as well?
Pretty naff if you cannot show the forms on the taskbar, unless you do not use the sub main feature, why will they not appear on the taskbar if they are modal.
-
The only reason you should load a form modally is if you want that form to lock your app until you finish with the form. You shouldn't have to load your initial form modally.
Hope this helps
-
In a perfect world!
In a perfect world yes, but the application that i am developing requiress modal forms, because of updating/locking files. What an oversite by MS.
Does VB6 (SP4) allow me to show modal forms on the taskbar?