Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update WallPaper with text using c#

Tags:

c#

I am doing an application that runs in background. Since there are no forms, I need to show some info on the desktop wallpaper. how can i achieve this ? The application need to update the info on wallpaper.

like image 696
Anuya Avatar asked Jun 08 '10 06:06

Anuya


2 Answers

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.

like image 136
Anthares Avatar answered Sep 28 '22 23:09

Anthares


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.

like image 23
TheCodeArtist Avatar answered Sep 28 '22 22:09

TheCodeArtist