
How to set Icon for forms without titlebar?
It's been quite awhile since I looked at that demo. I had another
look and realized it needed an update. I tweeked it a bit so that the
proxy window is now transparent. If you apply the code from the demo,
you need to set the ShowInTaskbar property for your form to False so
that only the proxy window shows in the taskbar.
As for drawing the icon directly in the taskbar, I believe you would
need to subclass the taskbar to do this which would not be something
you could do directly from VB without the help of some C/C++ code.
HTH,
Bryan
____________________________________________________________
New Vision Software "When the going gets weird,"
Bryan Stafford "the weird turn pro."
Microsoft MVP-Visual Basic Fear and Loathing in LasVegas
On Wed, 13 Mar 2002 16:56:22 -0000, "Elim LaRoche"
Quote:
>Hi Bryan,
>I've looked at the vbvision project, but it is not quite what I want. What
>I'm looking for is to get a handle on the taskbar item that holds the
>reference to my form and to set the icon directly. It shows, but does not
>display an icon.
>Using the vbvision project gives me two taskbar items (it basically creates
>another window which is off the main screen (but still shows on my second
>monitor ;-)), I only need one. (I'm hiding the menu bar by setting the
>ControlBox to false and not having a form caption, this way I still can
>resize it.
>However, as soon as the caption has no text and controlbax is set to false,
>it will only show the gray taskbar item without the icon. How can I enable
>it to show the icon without displaying the title bar?
>Thanks
>Elim
>> On Tue, 12 Mar 2002 16:33:08 -0000, "Elim LaRoche"
>> >I have a form without a titlebar (to display a custom one). How can I
>get
>> >the Icon back for that form to show on the taskbar? (It disappears
>together
>> >with the titlebar as soon as the forms borderstyle is set to none or the
>> >titlebar is removed with some other means)
>> >Thanks
>> >Elim
>> Have a look at the Proxy For Taskbar demo at
>> http://www.mvps.org/vbvision/
>> HTH,
>> Bryan
>> ____________________________________________________________
>> New Vision Software "When the going gets weird,"
>> Bryan Stafford "the weird turn pro."
>> Microsoft MVP-Visual Basic Fear and Loathing in LasVegas