How to set Icon for forms without titlebar? 
Author Message
 How to set Icon for forms without titlebar?

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



Sun, 29 Aug 2004 00:33:08 GMT  
 How to set Icon for forms without titlebar?
On Tue, 12 Mar 2002 16:33:08 -0000, "Elim LaRoche"

Quote:

>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



Sun, 29 Aug 2004 01:12:17 GMT  
 How to set Icon for forms without titlebar?
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


Quote:
> 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



Mon, 30 Aug 2004 00:56:22 GMT  
 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



Mon, 30 Aug 2004 04:47:39 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Q: VB4: Forms without titlebar, gfx without form?

2. Projects without forms (and setting icons)

3. dragging a form around the screen without a titlebar

4. Moving form without titlebar???

5. moving a form without using the titlebar

6. How to move a form without a titlebar?

7. How to make a form resizable and movable without showing the titlebar

8. How to make a form resizable and movable without showing the titlebar

9. How to make a form resizable and movable without showing the titlebar

10. Setting a form icon to an ImageList icon

11. How add icon to a program without a form

12. Tray Icon in projects without forms

 

 
Powered by phpBB® Forum Software