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

changing icon used for taskbar, etc.

P: n/a
Joe
Let me try to state this more clearly.

I need to be able to change the icon displayed in the taskbar and the icon
displayed when the user toggles among open apps with Alt+Tab.

I want the application to either use Icon_1 or Icon_1 depending on a value
retrieved from the Registry. I have the code to retrieve the Registry value.
I have the code to change the icon displayed in the control box of the app.
I don't know how to tell the application to use either Icon_1 or Icon_2
(depending on the value from the registry) in the task bar.

Does anyone know how to do this?

TIA,
--
Joe

VBA Automation/VB/C++/Web and DB development
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Joe,

You can try to use the WM_SETICON WinAPI message to update the application
icon.
Reference the SendMessage API with the DllImport attribute, define the
ICON_LARGE and ICON_SMALL constants, load the icon, get the icon's handle
through the icon's Handle property and update the large icon of the main
application window.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Joe" <Jo*@discussions.microsoft.com> wrote in message
news:14**********************************@microsof t.com...
Let me try to state this more clearly.

I need to be able to change the icon displayed in the taskbar and the icon
displayed when the user toggles among open apps with Alt+Tab.

I want the application to either use Icon_1 or Icon_1 depending on a value
retrieved from the Registry. I have the code to retrieve the Registry
value.
I have the code to change the icon displayed in the control box of the
app.
I don't know how to tell the application to use either Icon_1 or Icon_2
(depending on the value from the registry) in the task bar.

Does anyone know how to do this?

TIA,
--
Joe

VBA Automation/VB/C++/Web and DB development


Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.