Click here to Skip to main content
12,759,704 members (32,261 online)
Click here to Skip to main content
Add your own
alternative version


42 bookmarked
Posted 19 May 2002

Andrew's CodeProject Screen Saver

, 20 May 2002
Rate this:
Please Sign up or sign in to vote.
(Yet) another screen saver for the Code Project competition, with code in C# and (coming soon) some details about how certain aspects of the code involved work.


Options panel

Yes folks, my secret is out! I've been developing a screen saver for the competition. "Huh?" I hear you all say. Well, I've been really busy of late, so didn't want to make a big fuss about it and then not deliver. Luckily, after several weeks of my C# screen saver sounding more like an F natural (groan), I managed to kick the little baby into touch in time to catch the voting form being put up.

Before I go any further, may I just give a big thanks to Chris, firstly for grabbing onto such a great idea for a CP competition, and secondly for building the final .exe on his machine to save me from those Beta 2 blues (oh, they just keep coming!).

Here's a rundown of the main features of the screensaver:

  • Downloads data in a separate thread so as not to block user interface
  • Detects if a user is offline
  • Will retry after five minutes should the connection to the server fail
  • Hair raising graphics
  • Customisable animation speed for users with slower machines etc.


Installation is as easy as pie:

  1. Copy CP Screensaver.scr into your Windows system folder.
  2. Copy the Images folder as a sub-folder of your Windows system folder.
  3. Select the CP Screensaver from your Display properties.

Done like a dinner!

How it works

Check back soon! Major areas to be covered will be:

  • Double buffering
  • Alpha blending (the fade effect)
  • State management
  • Multiple monitor support (presuming it actually works as I intended, see below).

Multiple Monitors

Unfortunately, I don't run a multi-monitor system, which means that, whilst I have added support for multiple monitors (not particularly efficient support, granted), I have been unable to test the saver on such a configuration. If you have been able to try the saver out with multiple monitors, I'd be interested to hear your successes/failures in the comments section at the bottom of the article.

To do

The screensaver certainly has some way to go in the future but I simply don't have time to do anything with it just yet; here is a list of stuff I plan to do, off the top of my head:

  • Subtly animated background with alpha blending on lights of lift platform
  • Caching of local data so if the user isn't connected they can still see a list of posts etc. from the last time the saver managed to connect.
  • Better handling of really high and really low resolutions (maybe utilise extra space somehow?)
  • Better multiple monitor support
  • Some bits of optimisations (there are a few loop invariants that need sorting out, but nothing that's too big of a problem)


Okay - so I hope you enjoy what is already here. The code isn't in the neatest of forms by any means because I used this project as a learn-C#-as-you go, so there may be the odd rough edge here and there, though on the whole it's pretty reasonable.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Andrew Peace
United Kingdom United Kingdom
Andrew is currently a student at the University of Cambridge, working towards a degree in Computer Science. The word 'working' is used here in a vague sense, with the hope that the reader will realise that the same sentence contained the word 'student'.

Aside from computing he has a strong interest in music, and enjoys the outdoors, particularly when the weather permits going out in them... To Andrew, cycling is fun, sailing is more fun, and the odd camping trip and walk is certainly what the doctor ordered.

In terms of programming experience, he first started writing programs for the Commodore Amiga using BASIC, after which he learned the joys of C and has never looked back. Since, he has added C++ and C# to his repotoire, along with a bunch of other crazy languages like ML that they like to teach in college.

You may also be interested in...

Comments and Discussions

GeneralYour codes are very useful Pin
Nicholas Wang22-Oct-06 22:50
memberNicholas Wang22-Oct-06 22:50 
GeneralOptions panel screenshot in Firefox [modified] Pin
Rheal_Notes22-Jun-06 14:42
memberRheal_Notes22-Jun-06 14:42 
GeneralDefult Browser Pin
snoopybb23-Nov-05 12:27
membersnoopybb23-Nov-05 12:27 
GeneralMultiple Monitors - Here's how Pin
NetDave23-Jul-04 15:22
memberNetDave23-Jul-04 15:22 
GeneralRe: Multiple Monitors - Here's how Pin
kholland1525-Oct-04 12:26
memberkholland1525-Oct-04 12:26 
GeneralRe: Multiple Monitors - Here's how Pin
NetDave25-Oct-04 15:23
memberNetDave25-Oct-04 15:23 
GeneralRe: Multiple Monitors - Here's how Pin
reinux28-Nov-04 15:45
memberreinux28-Nov-04 15:45 
GeneralFunction Keys don't open the browser Pin
flipdoubt7-Aug-03 8:18
memberflipdoubt7-Aug-03 8:18 
QuestionRe: Function Keys don't open the browser Pin
snoopybb23-Nov-05 12:22
membersnoopybb23-Nov-05 12:22 
QuestionHow to create SCR file Pin
vishalarora28-Mar-03 8:36
sussvishalarora28-Mar-03 8:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 21 May 2002
Article Copyright 2002 by Andrew Peace
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid