I have created a simple c# screensaver. Have two minor problems:
1. How to define the "description" that appears in "list of screensavers"? Currently I am restricted to the name of the .scr file. But surely it can be defined as a description string elsewhere?
2. I want to display an image in the small windows that displays for each screensaver. I can do this by getting parent window handle. But only works only if I preceded with a MessageBox.Show (which pops up an unneccessay message box, which I do not want). How to make work without MessageBox ?
-----extract from my opening class-------
public class DotNETScreenSaver
....
static void Main(string[] args)
...
else if (args[0].ToLower() == "/p")
.... {
parent = IntPtr.Zero;
parent = (IntPtr) uint.Parse(args[1]);
Graphics g = Graphics.FromHwnd(parent);
Point p = new Point(1,1);
MessageBox.Show ("whatever", "whatever"); //why needed?
g.DrawImage(myImage, p);