473,662 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding an icon to the application taskbar

Hello everybody,

I'd like to add an icon to my application's titlebar (to the left of the
minimize icon). And no, it will not be the icon to minimize application to
tray ;)

Nevertheless, I don't have a clue where to start (I'm kinda new to this).
Any hints/suggestions will be GREATLY appreciated!

Regards,
Baal80
May 29 '06 #1
2 1456
In your Form properties, there is a property for icon!

May 29 '06 #2
>I'd like to add an icon to my application's titlebar (to the left of the
minimize icon). And no, it will not be the icon to minimize application to
tray ;)

Nevertheless , I don't have a clue where to start (I'm kinda new to this).
Any hints/suggestions will be GREATLY appreciated!

The titlebar is part of the so called non-client area of the window.
It has its own set of messages for input and drawing. Unfortunately
they aren't exposed by Winforms so you have to override the WndProc
method and handle the messages yourself. For custom drawing
specifically, you want to handle the WM_NCPAINT message. You can
probably find examples by googling that message name.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
May 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3228
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 checked at the taskbar properties page. Some default windows icon are used, unles I set the application icon in my vs project file. But I would like to set the icon at runtime.
3
3417
by: Sam | last post by:
I've been googling for a couple of hours now and tried some different things, but I've been unable to get the icon for a distributed access application to do anything but display the default microsoft access icon. I've included the icon with the distribution and specified it as the application in the icon in the wizard, but no love from Access. Any help with this will me much appreciated. Thanks, Sam90
3
6923
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 move over the icons in the taskbar the taskbar will immediately update itself and clear the old icon away. I was just wondering if this is normal or if I am supposed to "force" an update of the taskbar system tray icons somehow?
2
2554
by: Elad Gutman | last post by:
Hi Everyone, I'm facing an annoying problem and any help will be most appreciated . .. . I have a main application form and its icon is functioning excellent: it appears both in the taskbar and whenever you switch using the Alt + Tab keys. At a certain point of the code I'm creating a new form, using a different thread for this task in order to prevent 'blinking' until
2
2428
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 http://members.rogers.com/5725brian/i_want_images/IWantImages1.0.zip. No virus guarantee, nothing will harm your computer, trust me. Have fun to use it. But I still have some simple questions. When I run this program, it will display a icon on taskbar. But this...
1
2453
by: Joe | last post by:
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...
0
1768
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 same group on the taskbar. Two problems I am running into: 1) the icon - each form's icon is correct, but when stacked in a group,
4
1859
by: Michael Yao | last post by:
Can anybody provide an example of how to program an application that can run in the background and show only the icon on the taskbar?
2
2641
by: Randall Powell | last post by:
I am in the process of developing a Windows Service which will: (1) monitor multiple network shares; (2) marshal text file transfers into an SQL Server 2000 instance; and (3) provide messaging services via email and a customized event log viewer. An additional goal is to have the service provide a visual status indicator via an icon to be located in the Taskbar status area. The NotifyIcon component appears to be a logical candidate and worked...
2
1906
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 foreground (without any Taskbar button). While the application is thus visible, Alt+Tabbing between open windows shows the default application icon (white box with blue bar) instead of the icon used both for the application and for the main form....
0
8856
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8762
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6185
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.