Home All Groups Group Topic Archive Search About
Author
18 Oct 2005 7:29 PM
Tony
Hi All,

    I am using a custom program that is written is
VB6, SP5.  The author currently has the code
open for changes (yippee!!!).

    Problem: the program does not show on the task
bar (XP-Pro, sp2).  Is there some WinAPI or
other code addition I can tell him that would
cause the program to show on the task bar?

Many thanks,
--Tony

Author
18 Oct 2005 7:43 PM
Ken Halter
Show quote Hide quote
"Tony" <T***@invalid.com> wrote in message
news:dj3idr$t5t$4@domitilla.aioe.org...
> Hi All,
>
>    I am using a custom program that is written is
> VB6, SP5.  The author currently has the code
> open for changes (yippee!!!).
>
>    Problem: the program does not show on the task
> bar (XP-Pro, sp2).  Is there some WinAPI or
> other code addition I can tell him that would
> cause the program to show on the task bar?
>
> Many thanks,
> --Tony

Give him a hint and let him figure it out <g> Here's the hint. Modal forms
do not show in the taskbar. If you're starting the app in Sub Main and
showing the form modally, that's the problem. If you find that this isn't
what's going on, VB forms do have a ShowInTaskbar property (my money's on
the modal form)

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..
Author
18 Oct 2005 7:52 PM
Tony
Ken Halter wrote:
Show quoteHide quote
> "Tony" <T***@invalid.com> wrote in message
> news:dj3idr$t5t$4@domitilla.aioe.org...
>
>>Hi All,
>>
>>   I am using a custom program that is written is
>>VB6, SP5.  The author currently has the code
>>open for changes (yippee!!!).
>>
>>   Problem: the program does not show on the task
>>bar (XP-Pro, sp2).  Is there some WinAPI or
>>other code addition I can tell him that would
>>cause the program to show on the task bar?
>>
>>Many thanks,
>>--Tony
>
>
> Give him a hint and let him figure it out <g> Here's the hint. Modal forms
> do not show in the taskbar. If you're starting the app in Sub Main and
> showing the form modally, that's the problem. If you find that this isn't
> what's going on, VB forms do have a ShowInTaskbar property (my money's on
> the modal form)
>

Thank you!

Hmmmm.  When you minimize the form, it goes to a little
block (with the underline, square and "x") on the lower left,
above the taskbar.  Does that tell us anything?

--Tony
Author
18 Oct 2005 7:59 PM
Bob Butler
"Tony" <T***@invalid.com> wrote in message
news:4355526C.50003@invalid.com
> Hmmmm.  When you minimize the form, it goes to a little
> block (with the underline, square and "x") on the lower left,
> above the taskbar.  Does that tell us anything?

To me that implies that the borderstyle of the form may be the problem.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
18 Oct 2005 8:07 PM
MikeD
"Bob Butler" <tiredofit@nospam.com> wrote in message
news:OtaOn5B1FHA.3924@TK2MSFTNGP14.phx.gbl...
> "Tony" <T***@invalid.com> wrote in message
> news:4355526C.50003@invalid.com
>> Hmmmm.  When you minimize the form, it goes to a little
>> block (with the underline, square and "x") on the lower left,
>> above the taskbar.  Does that tell us anything?
>
> To me that implies that the borderstyle of the form may be the problem.


That could be also.  I didn't try that.  I DID try showing the form modally
from Sub Main and it behaves exactly as described.

--
Mike
Microsoft MVP Visual Basic
Author
18 Oct 2005 8:13 PM
MikeD
Show quote Hide quote
"MikeD" <nob***@nowhere.edu> wrote in message
news:e$SEi%23B1FHA.2072@TK2MSFTNGP12.phx.gbl...
>
> "Bob Butler" <tiredofit@nospam.com> wrote in message
> news:OtaOn5B1FHA.3924@TK2MSFTNGP14.phx.gbl...
>> "Tony" <T***@invalid.com> wrote in message
>> news:4355526C.50003@invalid.com
>>> Hmmmm.  When you minimize the form, it goes to a little
>>> block (with the underline, square and "x") on the lower left,
>>> above the taskbar.  Does that tell us anything?
>>
>> To me that implies that the borderstyle of the form may be the problem.
>
>
> That could be also.  I didn't try that.  I DID try showing the form
> modally from Sub Main and it behaves exactly as described.


OK.  I've tried playing around with various BorderStyle settings (as well as
MinButton and MaxButton).  I couldn't reproduce that behavior.

--
Mike
Microsoft MVP Visual Basic
Author
18 Oct 2005 9:11 PM
Bob Butler
"MikeD" <nob***@nowhere.edu> wrote in message
news:%230KljBC1FHA.560@TK2MSFTNGP12.phx.gbl
> OK.  I've tried playing around with various BorderStyle settings (as
> well as MinButton and MaxButton).  I couldn't reproduce that
> behavior.

I can't either now but I'm sure I've seen it happen.  It may be the modal
setting also.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
18 Oct 2005 8:03 PM
Jeff Johnson [MVP: VB]
Show quote Hide quote
"Tony" <T***@invalid.com> wrote in message
news:4355526C.50003@invalid.com...

>> Give him a hint and let him figure it out <g> Here's the hint. Modal
>> forms do not show in the taskbar. If you're starting the app in Sub Main
>> and showing the form modally, that's the problem. If you find that this
>> isn't what's going on, VB forms do have a ShowInTaskbar property (my
>> money's on the modal form)
>>
>
> Thank you!
>
> Hmmmm.  When you minimize the form, it goes to a little
> block (with the underline, square and "x") on the lower left,
> above the taskbar.  Does that tell us anything?

Yes, it tells us that BorderStyle plays a part along with modality.
Author
18 Oct 2005 8:04 PM
MikeD
Show quote Hide quote
"Tony" <T***@invalid.com> wrote in message
news:4355526C.50003@invalid.com...
> Ken Halter wrote:
>> "Tony" <T***@invalid.com> wrote in message
>> news:dj3idr$t5t$4@domitilla.aioe.org...
>>
>>>Hi All,
>>>
>>>   I am using a custom program that is written is
>>>VB6, SP5.  The author currently has the code
>>>open for changes (yippee!!!).
>>>
>>>   Problem: the program does not show on the task
>>>bar (XP-Pro, sp2).  Is there some WinAPI or
>>>other code addition I can tell him that would
>>>cause the program to show on the task bar?
>>>
>>>Many thanks,
>>>--Tony
>>
>>
>> Give him a hint and let him figure it out <g> Here's the hint. Modal
>> forms do not show in the taskbar. If you're starting the app in Sub Main
>> and showing the form modally, that's the problem. If you find that this
>> isn't what's going on, VB forms do have a ShowInTaskbar property (my
>> money's on the modal form)
>>
>
> Thank you!
>
> Hmmmm.  When you minimize the form, it goes to a little
> block (with the underline, square and "x") on the lower left,
> above the taskbar.  Does that tell us anything?


Yep.  The form's being shown modally just as Ken surmised, probably from Sub
Main but it wouldn't have to be from Sub Main.  For example, the start-up
object could be a splash screen which is showing the "main" form modally.
Since you apparently have the source code for this, you can fix it yourself,
but you could "do the right thing" and also notify the author so he/she can
fix it too.

--
Mike
Microsoft MVP Visual Basic
Author
18 Oct 2005 8:11 PM
Jeff Johnson [MVP: VB]
"Tony" <T***@invalid.com> wrote in message
news:4355526C.50003@invalid.com...

> Hmmmm.  When you minimize the form, it goes to a little
> block (with the underline, square and "x")

For reference, those are "minimize," "maximize," and "close" buttons.