473,320 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

changing icon used for taskbar, etc.

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
1 2444
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Morten Bendsen | last post by:
Is it possible to set the icon and title for a group of buttons on the taskbar? The group appears when several applicationwindows are opened, and when "Group similar taskbar buttons" are...
5
by: Dave | last post by:
Hi I am trying to set my windows xp pro system up so that i can write and test ..asp pages.I have followed the instructions given by www.w3schools.com to install the internet information...
3
by: jm | last post by:
Hi, I have a C# program that changes the notifyIcon during the program. What I have noticed is that sometimes when the program is over the old icon will still be in the system tray. But when i...
2
by: Brian | last post by:
Dear my friends, I have been helped by many C# gurus here, thank you very much. My small application can help you fetch some good pictures from Internet. You can get it from...
0
by: Jean Bredeche | last post by:
Hi: My application creates multiple forms, all of which appear in the taskbar. Because I have my Windows XP configured to "Group similar taskbar buttons", the multiple forms get put into the...
0
by: Richard | last post by:
Hi All, I'm running MySQL 5.0.15-nt over WinXP-Pro/SP2. I just got "My Definitive Guide to MySQL 5", which I find very helpful. It suggests that there should be a "MySQL" icon in the...
2
by: Paul E Collins | last post by:
My application's main form has ShowInTaskbar set to false, because it is controlled by means of an icon in the notification area. When the icon is double-clicked, the application comes to the...
1
by: KK | last post by:
I have a C# application with different projects in the solution. I need to change the application icon based on build configuration. I have different build configurations for branding the...
2
by: flaper87 | last post by:
Hi everybody!!!! I am developing an aplication, and i want it to stay on the system tray, i found out how to put the icon, but i can minimize it there, What do i have to do?, I'm using python(of...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.