Clock gadget in taskbar using C #

How to add a gadget watch using C # as shown below:

Clock image

I am making a clock in Windows Form using C #.

How to place the clock on the taskbar and in the place where the time is displayed in the notification area?

Update: Can this be done with notifyIcon?

+3
source share
1 answer

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

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

If what you are trying, perhaps this should at least point you in the right direction.

+1
source

Source: https://habr.com/ru/post/1788779/


All Articles