473,324 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Modifying settings in MS Windows Display Properties (Screensaver tab)

VM
Can I manually modify the Display Properties->ScreenSaver tab values from
within aWindows C# application? During setup of my screensaver, I'd like to
be able
to configure this tab (specifically, Screen Saver to use and minutes) so the
user doesn't have to go there and do it manually.

Also, is it the same process with any Windows OS or would I need to check
what version it's running? Finally, would this work with any user regardless
of what group they're in? Is protection an issue for this config (eg. my
program may not have permission to access these settings when user Guest is
logged on)?

Thanks.
Nov 15 '05 #1
2 6506
Hi,

Thanks for posting in the community.

From your description, I understand that you want to change the
screensaver's setting such as saver program, waiting time and password
protected via a C# program.
Please correct me if there is any misunderstand.

With my experience, you can change the registry to modify these settings,
the target registry entry is "HKCU\Control Panel\Desktop", the related
subkeys are:
ScreenSaverActive
ScreenSaverIsSecure
ScreenSaverTimeOut
SCRNSAVE.EXE

To applied these edited setting, it needs reboot your system unless the
user doesn't have change these settings during the current session before.

BTW, if you have any problems to change the registry with C#, please feel
free to reply this message.

Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 15 '05 #2
That's exactly what I needed.

Thank you,
VM
"Gary Chang" <v-******@online.microsoft.com> wrote in message
news:fx**************@cpmsftngxa06.phx.gbl...
Hi,

Thanks for posting in the community.

From your description, I understand that you want to change the
screensaver's setting such as saver program, waiting time and password
protected via a C# program.
Please correct me if there is any misunderstand.

With my experience, you can change the registry to modify these settings,
the target registry entry is "HKCU\Control Panel\Desktop", the related
subkeys are:
ScreenSaverActive
ScreenSaverIsSecure
ScreenSaverTimeOut
SCRNSAVE.EXE

To applied these edited setting, it needs reboot your system unless the
user doesn't have change these settings during the current session before.

BTW, if you have any problems to change the registry with C#, please feel
free to reply this message.

Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights. --------------------

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: news | last post by:
I want to see my settings for java. How do I see the settings using set on DOS screen?? My problem is when I type in set and nothing shows. I go to the directly where java.exe is located and...
1
by: Laurence Neville | last post by:
This is regarding a change in the Short Date format under Hebrew Regional Settings, that has caused huge problems in our ASP web application. The change appears to have been introduced sometime...
1
by: VM | last post by:
Can I modify the Display Properties->ScreenSaver tab values from within a Windows C# application? During setup of my screensaver, I'd like to be able to configure this tab (specifically, Screen...
3
by: Lance | last post by:
Is there a way to obtain the system DPI settings? (i.e., the value that is set under Display Properties - Settings Tab - Advanced... - General Tab - Font Size.) Thanks, Lance
1
by: Cristian | last post by:
Hi I have some trouble (on only one developer computer) with the application settings functions... I have posted to the Microsoft.Public.vstudio.setup group but they couldn't help me and asked...
5
by: Andy | last post by:
I need to write a VB.NET WinForms app. For this purpose I need to keep some settings of the application, like many other Windows applications do. The most obvious solution is to store settings in...
2
by: Johnny Jörgensen | last post by:
Can somebody explain hopw to store and restore settings values in .NET 2005? I read in MSDN that "The Application Settings feature of Windows Forms makes it easy to create, store, and maintain...
2
by: Thomas Thomassen | last post by:
Hi I made a screensaver in C# as a test project. At the time of creation I used XP and everything worked fine. Then I got a message from someone using Vista about an issue where the settings...
3
by: RobEveryThingIsPossible | last post by:
IN VISTA MS Access 2000 Printer Settings Not Saving With Vista Bus. The printer settings (Label or Env.) keep on change back to another setting after saving them on a report or form, when...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.