By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,680 Members | 1,500 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,680 IT Pros & Developers. It's quick & easy.

Windows XP application group icon

P: n/a
when multiple similar forms are opened up, windows xp can group them into an
application group button on the start bar.

Unfortunately, this application group uses the icon of the application's
executable, and not the icon that has been specified by form.

another usenet post here (watch for URL wrap)

http://groups.google.com/groups?hl=e...gbl%26rnum%3D6

I am hoping that someone knows a handy way to set the icon used by
application groups (without changing the application's icon), either using
interop or some esoteric .net wizardry that i've been unable to find.

Failing that, i am hoping that someone knows a way to prevent multiple forms
from being grouped in the start bar, but on an application basis instead of
going into the start bar properties and setting it there. If this can be
accomplished by interop or .net wizardry i'd love to hear of it also.
Jul 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Dear Matthew,

However I am not very sure if this resolves your problem
or not.... still I am just posting you my observation.

That's very right that Windows XP groups multiple windows
and the group icon is set to the Application's icon.

For this you can set the application's icon from the
project properties to an appropriate icon and then this
new icon will be shown as the group icon for individual
forms of your application.

Also remember this Application icon will be set to group
icon only in case of release mode. In debug mode, the
same out-of-date icon will appear.

Regards,
Puneet Taneja
-----Original Message-----
when multiple similar forms are opened up, windows xp can group them into anapplication group button on the start bar.

Unfortunately, this application group uses the icon of the application'sexecutable, and not the icon that has been specified by form.
another usenet post here (watch for URL wrap)

http://groups.google.com/groups?hl=e...ang_en&ie=UTF- 8&oe=UTF-8&safe=off&threadm=01f901c3610c%243a0cb900%
24a601280a%40phx.gbl&rnum=6&prev=/groups%3Fq%
3Dapplication%2Bgroup%2Bicon%2Bc%2523%26hl%3Den%26 lr%
3Dlang_en%26ie%3DUTF-8%26oe%3DUTF-8%26safe%3Doff%26selm%
3D01f901c3610c%25243a0cb900%2524a601280a%2540phx.g bl%
26rnum%3D6
I am hoping that someone knows a handy way to set the icon used byapplication groups (without changing the application's icon), either usinginterop or some esoteric .net wizardry that i've been unable to find.
Failing that, i am hoping that someone knows a way to prevent multiple formsfrom being grouped in the start bar, but on an application basis instead ofgoing into the start bar properties and setting it there. If this can beaccomplished by interop or .net wizardry i'd love to hear of it also.

.

Jul 21 '05 #2

P: n/a
Max
If you won't find anything better - try SetClassLong API function.
SetClassLong(YourForm.Handle,GCL_HICON, DesiredIcon.Handle)
and/or
SetClassLong(YourForm.Handle,GCL_HICONSM, DesiredIcon.Handle)
See platform SDK and Winuser.h for more information.

"Matthew Fitzpatrick" <ma**@eci.com> wrote in message
news:u4****************@TK2MSFTNGP09.phx.gbl...
when multiple similar forms are opened up, windows xp can group them into an application group button on the start bar.

Unfortunately, this application group uses the icon of the application's
executable, and not the icon that has been specified by form.

another usenet post here (watch for URL wrap)

http://groups.google.com/groups?hl=e...gbl%26rnum%3D6
I am hoping that someone knows a handy way to set the icon used by
application groups (without changing the application's icon), either using
interop or some esoteric .net wizardry that i've been unable to find.

Failing that, i am hoping that someone knows a way to prevent multiple forms from being grouped in the start bar, but on an application basis instead of going into the start bar properties and setting it there. If this can be
accomplished by interop or .net wizardry i'd love to hear of it also.

Jul 21 '05 #3

P: n/a
Max
If you won't find anything better - try SetClassLong API function.
SetClassLong(YourForm.Handle,GCL_HICON, DesiredIcon.Handle)
and/or
SetClassLong(YourForm.Handle,GCL_HICONSM, DesiredIcon.Handle)
See platform SDK and Winuser.h for more information.

"Matthew Fitzpatrick" <ma**@eci.com> wrote in message
news:u4****************@TK2MSFTNGP09.phx.gbl...
when multiple similar forms are opened up, windows xp can group them into an application group button on the start bar.

Unfortunately, this application group uses the icon of the application's
executable, and not the icon that has been specified by form.

another usenet post here (watch for URL wrap)

http://groups.google.com/groups?hl=e...gbl%26rnum%3D6
I am hoping that someone knows a handy way to set the icon used by
application groups (without changing the application's icon), either using
interop or some esoteric .net wizardry that i've been unable to find.

Failing that, i am hoping that someone knows a way to prevent multiple forms from being grouped in the start bar, but on an application basis instead of going into the start bar properties and setting it there. If this can be
accomplished by interop or .net wizardry i'd love to hear of it also.

Jul 21 '05 #4

P: n/a
I have a configuration file i'm using to "theme" my application. I want
everyone to be able to configure the app to look how they want it to, so i
need runtime (not compile-time) options. a super-hero named max showed me a
nifty interop function i can try. I'll post the results shortly!

"Puneet Taneja" <Pu*****@NIIT.Com> wrote in message
news:07****************************@phx.gbl...
Dear Matthew,

However I am not very sure if this resolves your problem
or not.... still I am just posting you my observation.

That's very right that Windows XP groups multiple windows
and the group icon is set to the Application's icon.

For this you can set the application's icon from the
project properties to an appropriate icon and then this
new icon will be shown as the group icon for individual
forms of your application.

Also remember this Application icon will be set to group
icon only in case of release mode. In debug mode, the
same out-of-date icon will appear.

Regards,
Puneet Taneja
-----Original Message-----
when multiple similar forms are opened up, windows xp

can group them into an
application group button on the start bar.

Unfortunately, this application group uses the icon of

the application's
executable, and not the icon that has been specified by

form.

another usenet post here (watch for URL wrap)

http://groups.google.com/groups?hl=e...ang_en&ie=UTF-

8&oe=UTF-8&safe=off&threadm=01f901c3610c%243a0cb900%
24a601280a%40phx.gbl&rnum=6&prev=/groups%3Fq%
3Dapplication%2Bgroup%2Bicon%2Bc%2523%26hl%3Den%26 lr%
3Dlang_en%26ie%3DUTF-8%26oe%3DUTF-8%26safe%3Doff%26selm%
3D01f901c3610c%25243a0cb900%2524a601280a%2540phx.g bl%
26rnum%3D6

I am hoping that someone knows a handy way to set the

icon used by
application groups (without changing the application's

icon), either using
interop or some esoteric .net wizardry that i've been

unable to find.

Failing that, i am hoping that someone knows a way to

prevent multiple forms
from being grouped in the start bar, but on an

application basis instead of
going into the start bar properties and setting it

there. If this can be
accomplished by interop or .net wizardry i'd love to

hear of it also.


.

Jul 21 '05 #5

P: n/a
I have a configuration file i'm using to "theme" my application. I want
everyone to be able to configure the app to look how they want it to, so i
need runtime (not compile-time) options. a super-hero named max showed me a
nifty interop function i can try. I'll post the results shortly!

"Puneet Taneja" <Pu*****@NIIT.Com> wrote in message
news:07****************************@phx.gbl...
Dear Matthew,

However I am not very sure if this resolves your problem
or not.... still I am just posting you my observation.

That's very right that Windows XP groups multiple windows
and the group icon is set to the Application's icon.

For this you can set the application's icon from the
project properties to an appropriate icon and then this
new icon will be shown as the group icon for individual
forms of your application.

Also remember this Application icon will be set to group
icon only in case of release mode. In debug mode, the
same out-of-date icon will appear.

Regards,
Puneet Taneja
-----Original Message-----
when multiple similar forms are opened up, windows xp

can group them into an
application group button on the start bar.

Unfortunately, this application group uses the icon of

the application's
executable, and not the icon that has been specified by

form.

another usenet post here (watch for URL wrap)

http://groups.google.com/groups?hl=e...ang_en&ie=UTF-

8&oe=UTF-8&safe=off&threadm=01f901c3610c%243a0cb900%
24a601280a%40phx.gbl&rnum=6&prev=/groups%3Fq%
3Dapplication%2Bgroup%2Bicon%2Bc%2523%26hl%3Den%26 lr%
3Dlang_en%26ie%3DUTF-8%26oe%3DUTF-8%26safe%3Doff%26selm%
3D01f901c3610c%25243a0cb900%2524a601280a%2540phx.g bl%
26rnum%3D6

I am hoping that someone knows a handy way to set the

icon used by
application groups (without changing the application's

icon), either using
interop or some esoteric .net wizardry that i've been

unable to find.

Failing that, i am hoping that someone knows a way to

prevent multiple forms
from being grouped in the start bar, but on an

application basis instead of
going into the start bar properties and setting it

there. If this can be
accomplished by interop or .net wizardry i'd love to

hear of it also.


.

Jul 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.