|
-
Jul 3rd, 2000, 08:40 AM
#1
Thread Starter
New Member
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.
-
Jul 3rd, 2000, 09:34 AM
#2
transcendental analytic
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?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jul 3rd, 2000, 09:37 AM
#3
Modal forms are not shown in the taskbar, if you do not load it modally it should show up.
Hope this helps
-
Jul 3rd, 2000, 09:49 AM
#4
Thread Starter
New Member
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.
-
Jul 3rd, 2000, 09:54 AM
#5
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
-
Jul 3rd, 2000, 10:13 AM
#6
Thread Starter
New Member
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|