Click here to Skip to main content
15,899,008 members
Home / Discussions / C#
   

C#

 
AnswerRe: What does a Stream reader/writer return? Pin
Stephane Rodriguez.4-May-03 0:17
Stephane Rodriguez.4-May-03 0:17 
QuestionCustomizable 3rd party Dialog controls? Pin
Markri2-May-03 13:19
Markri2-May-03 13:19 
AnswerRe: Customizable 3rd party Dialog controls? Pin
Stephane Rodriguez.4-May-03 0:46
Stephane Rodriguez.4-May-03 0:46 
QuestionOutlook like managed ListView Control ? Pin
Chris Richner2-May-03 6:25
Chris Richner2-May-03 6:25 
AnswerRe: Outlook like managed ListView Control ? Pin
J. Dunlap2-May-03 7:14
J. Dunlap2-May-03 7:14 
QuestionHow to show derived controls on a form? Pin
Alvaro Mendez2-May-03 6:13
Alvaro Mendez2-May-03 6:13 
AnswerRe: How to show derived controls on a form? Pin
apferreira3-May-03 23:16
apferreira3-May-03 23:16 
GeneralSetting ProductName and other version info Pin
S S Basra2-May-03 4:43
S S Basra2-May-03 4:43 
I want to set version information for my c# application and then be able to extract it and display it in a about box at runtime.

Some of the information I need you can define in the assemblyinfo file associated with a solution

eg.
[assembly: AssemblyTitle("Gradient Volume Calculator")]
[assembly: AssemblyDescription("Solvent Calculator for use by AS Software")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("XYZ")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("© XYZ")]
[assembly: AssemblyTrademark("XYZ")]
[assembly: AssemblyCulture("")]

and then access it using the FileVersionInfo command below

FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo(sFilePath);
x := myFileVersionInfo.LegalCopyright.ToString();

You can also Get Productname, FileVersion and InternalName, etc.

But HOW do you set things like ProductName, FileVersion, InternalName, FileDescription and Comments.

Am I missing an assembly reference or something?

Thanks in advance

Satvinder Basra


GeneralRe: Setting ProductName and other version info Pin
Burt Harris4-May-03 16:21
Burt Harris4-May-03 16:21 
Questionany idea what this sudo code would do??? Pin
t_elliff2-May-03 4:15
t_elliff2-May-03 4:15 
AnswerRe: any idea what this sudo code would do??? Pin
leppie2-May-03 7:03
leppie2-May-03 7:03 
AnswerRe: any idea what this sudo code would do??? Pin
Jim Stewart2-May-03 8:47
Jim Stewart2-May-03 8:47 
GeneralNices way ... Stream! Pin
Daniel Strigl2-May-03 4:13
Daniel Strigl2-May-03 4:13 
GeneralRe: Nices way ... Stream! Pin
Nathan Blomquist2-May-03 9:23
Nathan Blomquist2-May-03 9:23 
GeneralRe: Nices way ... Stream! Pin
Daniel Strigl2-May-03 20:51
Daniel Strigl2-May-03 20:51 
GeneralPlay music in C# Pin
Stoffe2-May-03 3:25
Stoffe2-May-03 3:25 
GeneralRe: Play music in C# Pin
Tim Fischbach5-May-03 4:42
Tim Fischbach5-May-03 4:42 
GeneralComboGrid Problem: How to get ComboBoxEvents before the DataGrid Pin
STW2-May-03 3:11
STW2-May-03 3:11 
QuestionHow to get KeyDownEvent from a ChildControl before the ParentControl Pin
STW2-May-03 3:10
STW2-May-03 3:10 
GeneralWhere to start... Pin
Steve McLenithan2-May-03 2:28
Steve McLenithan2-May-03 2:28 
GeneralRe: Where to start... Pin
Chris Austin3-May-03 17:06
Chris Austin3-May-03 17:06 
GeneralRe: Where to start... Pin
Steve McLenithan3-May-03 17:11
Steve McLenithan3-May-03 17:11 
GeneralRemoting Pin
Jon Newman2-May-03 1:53
Jon Newman2-May-03 1:53 
GeneralOpen an "About" window.... Pin
eggie51-May-03 18:30
eggie51-May-03 18:30 
GeneralRe: Open an "About" window.... Pin
draco_iii1-May-03 23:36
draco_iii1-May-03 23:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.