Click here to Skip to main content
15,891,204 members
Home / Discussions / C#
   

C#

 
AnswerRe: DLL missing? Pin
EliottA8-Apr-09 2:57
EliottA8-Apr-09 2:57 
GeneralRe: DLL missing? Pin
tom5720078-Apr-09 2:59
tom5720078-Apr-09 2:59 
GeneralRe: DLL missing? Pin
EliottA8-Apr-09 3:01
EliottA8-Apr-09 3:01 
GeneralRe: DLL missing? Pin
EliottA8-Apr-09 3:02
EliottA8-Apr-09 3:02 
GeneralRe: DLL missing? Pin
tom5720078-Apr-09 4:02
tom5720078-Apr-09 4:02 
QuestionChanging amount of a const variable at the run time ! Pin
Mohammad Dayyan8-Apr-09 2:52
Mohammad Dayyan8-Apr-09 2:52 
AnswerRe: Changing amount of a const variable at the run time ! Pin
MNantu8-Apr-09 3:23
MNantu8-Apr-09 3:23 
AnswerRe: Changing amount of a const variable at the run time ! Pin
King Julien8-Apr-09 3:28
King Julien8-Apr-09 3:28 
Hi,
I believe changing a CONST type in the runtime is merely impossible... because its a compile-time constanst...

If you want to assign a value at runtime only for once and after if you want to deny any changes then you can use readonly.

However all this concepts are valid only when the assembly is loaded in to the memory.. means only while the application is running.... Once the application is stopped then, all the variables and objects in the program is lost whatever the type(CONST or ReadOnly doesnt matter).

If you want to retain the changes even after the application is closed, then saving the data in a separate file and accessing it, as and when required is the possible solution.

Have a Happy Coding.....

JokeRe: Changing amount of a const variable at the run time ! Pin
Phil J Pearson8-Apr-09 4:48
Phil J Pearson8-Apr-09 4:48 
QuestionTotaling and averaging column in datagridview [modified] Pin
Martin310888-Apr-09 2:47
Martin310888-Apr-09 2:47 
AnswerRe: Totaling and averaging column in datagridview Pin
Dino Mulahusic8-Apr-09 3:30
professionalDino Mulahusic8-Apr-09 3:30 
GeneralRe: Totaling and averaging column in datagridview Pin
MNantu8-Apr-09 3:37
MNantu8-Apr-09 3:37 
GeneralRe: Totaling and averaging column in datagridview Pin
Martin310888-Apr-09 3:40
Martin310888-Apr-09 3:40 
AnswerRe: Totaling and averaging column in datagridview Pin
MNantu8-Apr-09 3:35
MNantu8-Apr-09 3:35 
QuestionPopulating ComboBox with "ALL" option Pin
jimish18-Apr-09 2:26
jimish18-Apr-09 2:26 
AnswerRe: Populating ComboBox with "ALL" option Pin
Noah Wollowick8-Apr-09 2:35
Noah Wollowick8-Apr-09 2:35 
GeneralRe: Populating ComboBox with "ALL" option Pin
jimish18-Apr-09 2:42
jimish18-Apr-09 2:42 
AnswerRe: Populating ComboBox with "ALL" option Pin
Sun Rays8-Apr-09 2:49
Sun Rays8-Apr-09 2:49 
GeneralRe: Populating ComboBox with "ALL" option Pin
jimish18-Apr-09 16:06
jimish18-Apr-09 16:06 
QuestionSQL Reporting Services - Reports to the screen Pin
imnotso#8-Apr-09 2:26
imnotso#8-Apr-09 2:26 
Questionadding tooltip combobox items Pin
tai-fun8-Apr-09 2:07
tai-fun8-Apr-09 2:07 
AnswerRe: adding tooltip combobox items Pin
0x3c08-Apr-09 2:13
0x3c08-Apr-09 2:13 
QuestionWhy dont u guys reply to my queries? Pin
Rajdeep.NET is BACK8-Apr-09 1:02
Rajdeep.NET is BACK8-Apr-09 1:02 
AnswerRe: Why dont u guys reply to my queries? Pin
musefan8-Apr-09 1:05
musefan8-Apr-09 1:05 
GeneralRe: Why dont u guys reply to my queries? Pin
Rajdeep.NET is BACK8-Apr-09 1:09
Rajdeep.NET is BACK8-Apr-09 1:09 

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.