Click here to Skip to main content
15,896,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding EventHandler Pin
MidwestLimey19-Jul-07 11:16
professionalMidwestLimey19-Jul-07 11:16 
GeneralRe: Adding EventHandler Pin
Luc Pattyn19-Jul-07 11:38
sitebuilderLuc Pattyn19-Jul-07 11:38 
QuestionHow do applications get permission to create keys hkey_classes_root? Pin
Sepharo19-Jul-07 9:58
Sepharo19-Jul-07 9:58 
QuestionCreating Tools > Options window Pin
student_rhr19-Jul-07 9:47
student_rhr19-Jul-07 9:47 
AnswerRe: Creating Tools > Options window Pin
Paul Conrad19-Jul-07 10:41
professionalPaul Conrad19-Jul-07 10:41 
AnswerRe: Creating Tools > Options window Pin
BoneSoft19-Jul-07 10:45
BoneSoft19-Jul-07 10:45 
GeneralRe: Creating Tools > Options window Pin
student_rhr20-Jul-07 3:16
student_rhr20-Jul-07 3:16 
GeneralRe: Creating Tools > Options window Pin
BoneSoft20-Jul-07 3:42
BoneSoft20-Jul-07 3:42 
There's nothing wrong with using app.settings.

For the app to take advantage of setting changes, you can have the host form get the settings from the options form before it is disposed, or read them from your app.settings file after the options form is closed.

private void ChangeSettings() {
    MyOptionsForm mof = new MyOptionsForm();
    // show your settings form as a dialog
    // this line will show the form, and get the result when it closes
    // but you still have the mof reference to it, and can access it's
    // public properties.
    if (mof.ShowDialog() == DialogResult.OK) {
        // Make Setting Changes Here
        // Expose setting properties from MyOptionsForm
        // or re-read your settings file here.
    }
}


That help?



Try code model generation tools at BoneSoft.com.

QuestionHow Search Engine Works Pin
monafr8119-Jul-07 9:14
monafr8119-Jul-07 9:14 
JokeRe: How Search Engine Works Pin
BoneSoft19-Jul-07 9:17
BoneSoft19-Jul-07 9:17 
GeneralRe: How Search Engine Works Pin
Paul Conrad19-Jul-07 9:21
professionalPaul Conrad19-Jul-07 9:21 
GeneralRe: How Search Engine Works Pin
BoneSoft19-Jul-07 10:35
BoneSoft19-Jul-07 10:35 
GeneralRe: How Search Engine Works Pin
Paul Conrad19-Jul-07 10:39
professionalPaul Conrad19-Jul-07 10:39 
GeneralRe: How Search Engine Works Pin
BoneSoft19-Jul-07 10:51
BoneSoft19-Jul-07 10:51 
JokeRe: How Search Engine Works Pin
Luc Pattyn19-Jul-07 9:22
sitebuilderLuc Pattyn19-Jul-07 9:22 
GeneralRe: How Search Engine Works Pin
monafr8119-Jul-07 9:26
monafr8119-Jul-07 9:26 
GeneralRe: How Search Engine Works Pin
Larantz19-Jul-07 9:32
Larantz19-Jul-07 9:32 
GeneralRe: How Search Engine Works Pin
monafr8119-Jul-07 9:36
monafr8119-Jul-07 9:36 
GeneralRe: How Search Engine Works Pin
BoneSoft19-Jul-07 10:37
BoneSoft19-Jul-07 10:37 
GeneralRe: How Search Engine Works Pin
Vasudevan Deepak Kumar19-Jul-07 18:41
Vasudevan Deepak Kumar19-Jul-07 18:41 
GeneralRe: How Search Engine Works Pin
BoneSoft20-Jul-07 6:11
BoneSoft20-Jul-07 6:11 
GeneralRe: How Search Engine Works Pin
Member 1354794410-Dec-17 22:43
Member 1354794410-Dec-17 22:43 
AnswerRe: How Search Engine Works Pin
DavidNohejl19-Jul-07 11:00
DavidNohejl19-Jul-07 11:00 
QuestionHow to get all environment variable of a process Pin
SteveA6919-Jul-07 8:13
SteveA6919-Jul-07 8:13 
AnswerRe: How to get all environment variable of a process Pin
Ian Shlasko19-Jul-07 8:32
Ian Shlasko19-Jul-07 8:32 

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.