473,386 Members | 1,741 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,386 software developers and data experts.

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.scr" and the dropdown shows
"screensaver", 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 "screensaver 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 2184
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.com

"Mark van Dijk" <ma*********@gmail.comwrote in message
news:11**********************@51g2000cwl.googlegro ups.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.scr" and the dropdown shows
"screensaver", 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 "screensaver 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
by: Mr. x | last post by:
Hello, Can Html code be a screen saver ? How can I do that ? Thanks :)
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...
2
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...
12
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...
1
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...
4
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...
0
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...
0
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...

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.