473,783 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Howto change a C# winforms Screen Saver's Title in Display Properties?

Hi there,

I have a farely simple question that I can't seem to find the answer
to.

I've got a C# Winforms application that after building results in an
executable. This executable is then renamed to an .scr file and used as
a Screen Saver.

How can I get this file to come up with a different name than the
filename in the dropdown list in Display Properties/Screen Saver? My
screensaver's filename is "screensaver.sc r" and the dropdown shows
"screensave r", instead of a more friendly name "My Beautiful Screen
Saver".

I've searched everywhere but all I get is things that refer to a
StringTable, where you have to add a row with ID 1 and name "title" and
value "screensave r title". This should result in a different Title
being used in the dropdown mentioned before. However, I don't know how
to add this StringTable to my C# project.
When I open existing .scr files (that come with windows) in VS.Net
using the Resource Editor I see a StringTable that indeed contains this
ID 1 row, but when I open my own executable, I don't even have a
StringTable.

I hope someone can advise me on what to do.

Thanks in advance,
Mark

Jan 22 '07 #1
1 2222
Mark,

The C# compiler has a command line option to add a Win32 resource to
your exe. What you want to do is create a resource file (with your string
table) and then use the resource compiler to generate the resource file.
Once you have the .res file, you can set the /win32res flag when calling
csc.exe and point to that file to be included in the executable.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mark van Dijk" <ma*********@gm ail.comwrote in message
news:11******** **************@ 51g2000cwl.goog legroups.com...
Hi there,

I have a farely simple question that I can't seem to find the answer
to.

I've got a C# Winforms application that after building results in an
executable. This executable is then renamed to an .scr file and used as
a Screen Saver.

How can I get this file to come up with a different name than the
filename in the dropdown list in Display Properties/Screen Saver? My
screensaver's filename is "screensaver.sc r" and the dropdown shows
"screensave r", instead of a more friendly name "My Beautiful Screen
Saver".

I've searched everywhere but all I get is things that refer to a
StringTable, where you have to add a row with ID 1 and name "title" and
value "screensave r title". This should result in a different Title
being used in the dropdown mentioned before. However, I don't know how
to add this StringTable to my C# project.
When I open existing .scr files (that come with windows) in VS.Net
using the Resource Editor I see a StringTable that indeed contains this
ID 1 row, but when I open my own executable, I don't even have a
StringTable.

I hope someone can advise me on what to do.

Thanks in advance,
Mark

Mar 29 '07 #2

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

Similar topics

7
4046
by: Mr. x | last post by:
Hello, Can Html code be a screen saver ? How can I do that ? Thanks :)
1
1442
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...
2
2842
by: HumptyDumpty | last post by:
Does anyone know if there is a problem with re-enabling the Screen Saver after it has been disabled programmatically. I am using the SystemParametersInfo function within User32.dll, and have been successful in disabling the Screen Saver, but it does not work for re-enabling. The only way I can re-activate it is to re-apply the settings through the Display properties in the Control Panel. Sample lines of code, in simplest form:
12
11577
by: Rob | last post by:
Is there a way that VB can know when the operating system goes into screen save mode? I have continuous polling I wish to pause while in screen save mode. And likewise to wake back up when the screen saver is turned back off. Any help on this will be greatly appreciated. Rob
1
984
by: Marvin Zamora | last post by:
I am making a screen saver, but I don't know how to resize the form to take on the size of the screen. It doesn't seem like I can set it explicitly in the properties menu of the form because different people use different resolutions. Is there a way to code it out (or some property) that will allow the form to take the size of the entire screen (taskbar included) no matter what resolution is used?
4
1785
by: Shawn Mehaffie | last post by:
I have created a screen saver using VB.Net but cannot find any articles or examples on how to write the code for the /p parameter (display in dialog preview window). All the .Net exmaples I have found skip this functionality and simply put, this requires advance threading and is beyond the scope of this example. Can anyone please give me an answer to this or at least give me a link to where I can find this information. S. Shawn...
0
1065
by: Shawn Mehaffie | last post by:
I am creatign a screen saver and am having a problem with showing the screensaver form in the preview pane. The code works correctly in the the form does display within the preview window. I created a simple for for testing called Preview that only had a label on it and the text "This is a Test" is hardcoded. By doing this I know that it is not other code I have written that is causing this. The problems I am having are: 1) The Preview...
0
3283
by: Jeffery Tyree | last post by:
I have a machine that will be used to demo some Excel spreadsheets at a convention. Because I did not author the spreadsheets and attendees will be allowed to play with the spreadsheets, I needed a way to periodically restore the original versions. In addition to the "always-on-top click this button to reset demo" application I wrote, I chose to use screen saver code to reset the demo after a period of inactivity in the event an attendee...
0
1263
by: rehanrana | last post by:
I built application in VB6, my application appear in system tray, when I double click on icon of my application, it run screen saver, my screen saver shows images and news. Screen saver functionality is that when user press F2 key, my screen saver open news detail in browser. But the problem is that when screen saver stop (close), browser also close with the screen saver. following line i use to start screen saver lRet =...
0
9480
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
10313
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...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10081
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
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5378
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...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2875
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.