Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
Questiontreelistview key Navigation problem Pin
hirenkshah3-Apr-09 22:46
hirenkshah3-Apr-09 22:46 
AnswerRe: treelistview key Navigation problem Pin
Xmen Real 4-Apr-09 1:14
professional Xmen Real 4-Apr-09 1:14 
QuestionGridview Binding Pin
K V Sekhar3-Apr-09 22:33
K V Sekhar3-Apr-09 22:33 
AnswerRe: Gridview Binding Pin
Christian Graus3-Apr-09 23:16
protectorChristian Graus3-Apr-09 23:16 
QuestionCreating application settings at runtime? Pin
Sokka933-Apr-09 21:33
Sokka933-Apr-09 21:33 
AnswerRe: Creating application settings at runtime? Pin
DaveyM693-Apr-09 22:41
professionalDaveyM693-Apr-09 22:41 
AnswerRe: Creating application settings at runtime? Pin
Henry Minute4-Apr-09 6:21
Henry Minute4-Apr-09 6:21 
Answer[Message Deleted] Pin
rick05565-Aug-09 5:25
rick05565-Aug-09 5:25 
What you could do is create a new registry key
Name the new key "Your program settings".

RegistryKey ProgSettings = Registry.CurrentUser.OpenSubKey("Software,true);
ProgSettings.CreateSubKey("Your Program settings");
ProgSettings.Close();

Now you can add Sring Identifiers and values.
RegistryKey ProgSettings = Registry.CurrentUser.OpenSubKey("Software\\Your Program settings",true)
ProgSettings.SetValue("Setting Name",value) //store settings

string settings = ProgSettings.GetValue("Setting Name",false);// retreave settings

ProgSettings.DeleteValue("Setting Name",Setting Value);

Besure to close the registry key when you are done to avoid conflicts with other parts of your program that may write to the registry.

Many comercial software applications use these methods.
Code Project has many examples about Writing and reading to the registry.
This is much easyer the modifying the appconfig.xml file that is used when you create settings.
Hope this helps
GOD bless
Regards
AnswerRe: Creating application settings at runtime? Pin
rick05565-Aug-09 5:26
rick05565-Aug-09 5:26 
GeneralRe: Creating application settings at runtime? Pin
Sokka935-Aug-09 5:48
Sokka935-Aug-09 5:48 
QuestionHindi fonts are not shown in Exported PDF Pin
tauras813-Apr-09 20:52
tauras813-Apr-09 20:52 
QuestionPassing multiple parameters to query which counts number of rows in C# Pin
Deepali Khalkar3-Apr-09 19:23
Deepali Khalkar3-Apr-09 19:23 
AnswerRe: Passing multiple parameters to query which counts number of rows in C# Pin
Eddy Vluggen3-Apr-09 23:28
professionalEddy Vluggen3-Apr-09 23:28 
QuestionGetting the installation location in a post install task [modified] Pin
shaf2113-Apr-09 18:45
shaf2113-Apr-09 18:45 
AnswerRe: Getting the installation location in a post install task Pin
shaf2113-Apr-09 21:04
shaf2113-Apr-09 21:04 
Questionsql query Pin
Mangesh Tomar3-Apr-09 18:39
Mangesh Tomar3-Apr-09 18:39 
AnswerRe: sql query Pin
Christian Graus3-Apr-09 23:15
protectorChristian Graus3-Apr-09 23:15 
QuestionRichTextBox help [modified] Pin
murktinez3-Apr-09 18:32
murktinez3-Apr-09 18:32 
AnswerRe: RichTextBox help Pin
Luc Pattyn3-Apr-09 18:34
sitebuilderLuc Pattyn3-Apr-09 18:34 
GeneralRe: RichTextBox help Pin
murktinez3-Apr-09 18:40
murktinez3-Apr-09 18:40 
GeneralRe: RichTextBox help Pin
Eddy Vluggen3-Apr-09 23:37
professionalEddy Vluggen3-Apr-09 23:37 
QuestionString Format ! Pin
Mohammad Dayyan3-Apr-09 12:03
Mohammad Dayyan3-Apr-09 12:03 
AnswerRe: String Format ! Pin
Yusuf3-Apr-09 12:59
Yusuf3-Apr-09 12:59 
GeneralRe: String Format ! Pin
Mohammad Dayyan3-Apr-09 23:25
Mohammad Dayyan3-Apr-09 23:25 
GeneralRe: String Format ! Pin
Yusuf4-Apr-09 2:02
Yusuf4-Apr-09 2:02 

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.