Click here to Skip to main content
12,557,906 members (52,221 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#
how can i create preview for the selected screen saver in c#.i hav used combo box that comprises of list of images that i want to use as my screensaver.but i dont know which property to use to load selected image on the monitor when clicked on a preview button. kindly also tell how can i adjust slide show speed option for my screen saver using different properties. plz reply as soon as possible.
Posted 9-Nov-12 6:36am
Updated 9-Nov-12 6:38am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You don't create the preview... Windows does. When a user picks your screen saver from the list, Windows launches your .scr application inside the Screen Saver picker and displays it in the preview window automatically. You don't have to do anything other than make sure your screen saver works.

If you want to show a preview of your screen saver inside your properties window, that is a different story. That isn't typically done but I would suggest you start with an image control and an update timer that updates your preview every so often.

You will have to figure out what properties you want on your screen saver and how you will manage them.
BillWoodruff 9-Nov-12 14:50pm
Hi Jason, I think this is an excellent answer that explains the general principle of how screen-savers are run in Windows.

Partcularly for a beginner, I'd agree that trying to create some dynamic display within the screen-saver ui is a waste of time, and is not standard practice, which is: you preview the screen-saver running full-screen, by pressing a button, and when you click on the screen you come back to the screen-saver ui.

best, Bill

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161026.1 | Last Updated 9 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100