Results 1 to 6 of 6

Thread: Sub main and the taskbar

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Shropshire, England
    Posts
    14

    Unhappy

    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.
    Were all drowning!

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  3. #3
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Modal forms are not shown in the taskbar, if you do not load it modally it should show up.

    Hope this helps

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Shropshire, England
    Posts
    14

    Smile 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.
    Were all drowning!

  5. #5
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    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

  6. #6

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Shropshire, England
    Posts
    14

    Exclamation 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?


    Were all drowning!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width