Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 9-Nov-12 6:38am
v2

1 solution

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.
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900