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

C#

 
AnswerRe: Data Source problem Pin
AmitGajjar25-Dec-11 22:00
professionalAmitGajjar25-Dec-11 22:00 
GeneralRe: Data Source problem Pin
David baghaturia25-Dec-11 22:46
David baghaturia25-Dec-11 22:46 
QuestionHow to create .chm file that is help file Pin
sarang_k19-Dec-11 17:08
sarang_k19-Dec-11 17:08 
AnswerRe: How to create .chm file that is help file Pin
JF201519-Dec-11 21:17
JF201519-Dec-11 21:17 
AnswerRe: How to create .chm file that is help file Pin
Prasanna Kumar Pete22-Dec-11 0:59
Prasanna Kumar Pete22-Dec-11 0:59 
QuestionAny way to add USER settings at runtime? Pin
SledgeHammer0119-Dec-11 9:59
SledgeHammer0119-Dec-11 9:59 
AnswerRe: Any way to add USER settings at runtime? Pin
fjdiewornncalwe19-Dec-11 10:23
professionalfjdiewornncalwe19-Dec-11 10:23 
GeneralRe: Any way to add USER settings at runtime? Pin
SledgeHammer0119-Dec-11 10:44
SledgeHammer0119-Dec-11 10:44 
Thanks for the link. I saw that one... didn't really like it and it wouldn't work for me since it would require the developer to do something before my code could work Smile | :) . Anyways, I figured it out:

SettingsAttributeDictionary attrDict = new SettingsAttributeDictionary();
UserScopedSettingAttribute attr = new UserScopedSettingAttribute();
attrDict.Add(attr.GetType(), attr);

SettingsProperty p = new SettingsProperty("Testing", typeof(bool), b.Providers["LocalFileSettingsProvider"], false, false, SettingsSerializeAs.String, attrDict, false, false);
b.Properties.Add(p);


b is the ref to the settings class... i.e. WpfApplication.Properties.Settings.Default;

the thing I was missing before was adding the attribute dictionary and the provider. One kinda-pita aspect of it is you need to add the setting every time so the setting provider knows about it. When you add it back after its in the setting file, it'll read the proper value out of it. It just doesn't add the key by itself because its not in the app.config, but I'm ok with that as I kind of like the aspect that the setting is "hidden".
Questionhandling network hardwares Pin
Member 825768019-Dec-11 9:52
Member 825768019-Dec-11 9:52 
AnswerRe: handling network hardwares Pin
fjdiewornncalwe19-Dec-11 10:26
professionalfjdiewornncalwe19-Dec-11 10:26 
AnswerRe: handling network hardwares Pin
Subin Mavunkal20-Dec-11 4:32
Subin Mavunkal20-Dec-11 4:32 
QuestionHow to read the SSIS dtsconfig from a c# script Pin
gerom7719-Dec-11 2:30
gerom7719-Dec-11 2:30 
Questionhow to save a recorded macro? Pin
mschotamaster18-Dec-11 3:36
mschotamaster18-Dec-11 3:36 
AnswerRe: how to save a recorded macro? Pin
OriginalGriff18-Dec-11 3:43
mveOriginalGriff18-Dec-11 3:43 
AnswerRe: how to save a recorded macro? Pin
Eddy Vluggen18-Dec-11 3:45
professionalEddy Vluggen18-Dec-11 3:45 
Questionhow to save a recorded macro? Pin
mschotamaster18-Dec-11 3:34
mschotamaster18-Dec-11 3:34 
AnswerRe: how to save a recorded macro? Pin
OriginalGriff18-Dec-11 3:42
mveOriginalGriff18-Dec-11 3:42 
AnswerRe: how to save a recorded macro? Pin
Rajesh Anuhya18-Dec-11 21:36
professionalRajesh Anuhya18-Dec-11 21:36 
Questionhow to compare the textbox data with listbox items ? Pin
zahra199118-Dec-11 2:27
zahra199118-Dec-11 2:27 
AnswerRe: how to compare the textbox data with listbox items ? Pin
DaveyM6918-Dec-11 2:43
professionalDaveyM6918-Dec-11 2:43 
AnswerRe: how to compare the textbox data with listbox items ? Pin
#realJSOP18-Dec-11 2:45
professional#realJSOP18-Dec-11 2:45 
AnswerRe: how to compare the textbox data with listbox items ? Pin
OriginalGriff18-Dec-11 3:44
mveOriginalGriff18-Dec-11 3:44 
QuestionHow i can set icon for new file extenstion ? Pin
Honeyboy_2018-Dec-11 1:22
Honeyboy_2018-Dec-11 1:22 
AnswerRe: How i can set icon for new file extenstion ? Pin
Eddy Vluggen18-Dec-11 1:38
professionalEddy Vluggen18-Dec-11 1:38 
GeneralRe: How i can set icon for new file extenstion ? Pin
Honeyboy_2018-Dec-11 1:42
Honeyboy_2018-Dec-11 1:42 

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.