简体   繁体   中英

Clock Gadget in taskbar using C#

How can I add my clock gadget using C# like in below image

时钟图像

I am making clock in Windows Form using C#.

How can I place my clock in taskbar and at the place where time is displayed in Notification area?

Update: Is this can be done by notifyIcon ?

Poking around with Spy++ (installed by default with Visual Studio) you will find that the name of this window is TrayClockWClass. You can then get a handle to it with some basic Pinvoke calls outlined in this blog post:

http://vladimir-kurka.blogspot.com/2009/09/using-pinvoke.html

If what you are attempting is possible this should at least point you in the right direction.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM