I am doing an application that runs in background. Since there are no forms, I need t开发者_Python百科o show some info on the desktop wallpaper. how can i achieve this ? The application need to update the info on wallpaper.
In order to change the system wallpaper, you'll need to invoke the SystemParameterInfo API. This function is well documented, look for it in google.
If you need to write something on the wallpaper, you might try to output the text in the image before passing that on to SystemParameterInfo.
This means that every time you need to change the text, you'll need to start again from the original image and add the new text.
U want no forms? I give U Transparent Forms!
Try implementing a single form with your custom message/text written on it.
This solves the problem of :
NOT having to write directly to the wallpaper &
NOT having to use use systray/widget-bar/notification
You might want to check this out XparentFormsCS on c-sharpcorner.com
NOTE: The pop-up balloon with ur text does seem a very cute-alternative though.
Just use a windows service which writes to the event log or something else. Windows offers diverse possibilites, writing text to the desktop directly should never be used in any case.
Finally, you can activate the web (HTML) desktop to a local HTML page, and update that page with your Winservice, but this is surely not a winget.
精彩评论