473,804 Members | 3,043 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6534
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\Contr ol Panel\Desktop", the related
subkeys are:
ScreenSaverActi ve
ScreenSaverIsSe cure
ScreenSaverTime Out
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.m icrosoft.com> wrote in message
news:fx******** ******@cpmsftng xa06.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\Contr ol Panel\Desktop", the related
subkeys are:
ScreenSaverActi ve
ScreenSaverIsSe cure
ScreenSaverTime Out
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
2150
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 type set and nothing. How do I change the settings like CLASSPATH Thanks in advance
1
4846
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 before Windows 2000 Service Pack 4 and has remained through to Windows XP. I am looking for a solution that doesn't involve rewriting our application (much) and that allows all our users to keep using Hebrew Regional Settings. To summarize our...
1
1443
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 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...
3
1344
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
1891
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 me to post in this forum. I paste both the messages I posted there.. --- Hi I have just installed VS2005 and the first thing I did was to try out the new Screensaver sample. that wouldn't work it just crashed all the time.
5
8381
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 the XML file or registry. If it's an XML file, then I need the following: 1. Create XSD schema, and be able to validate XML file with the settings against that schema (How would I store the schema, if it's a class library, for example? Would...
2
5620
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 custom application and user preferences on the client computer." And then it goes on to explain that you have to create wrapper classes and bind them to different controls etc... I don't understand Jack! All I want to do is store the value of a...
2
2872
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 doesn't seem to stick. I tested on my own Vista box and I got the same result. The issue is that, while you can set custom colour and font in the settings window and the settings will be saved and be reflected correctly when you preview the...
3
2211
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 viewing them on other Vista computers. I have tried many things see Example: Open my report in Design mode. Select Page Setup. On the Page tab, alongside Use Specific Printer, press the Printer button. Having selected your printer, press Properties....
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10571
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10317
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6851
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5520
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.