Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem with Code Pin
Guffa23-Sep-06 3:31
Guffa23-Sep-06 3:31 
AnswerRe: Problem with Code Pin
User 171649223-Sep-06 4:29
professionalUser 171649223-Sep-06 4:29 
GeneralRe: Problem with Code Pin
Kevin McFarlane23-Sep-06 5:38
Kevin McFarlane23-Sep-06 5:38 
QuestionTyped & Non-Typed DataSet Pin
Mohammed Amine23-Sep-06 3:15
Mohammed Amine23-Sep-06 3:15 
AnswerRe: Typed & Non-Typed DataSet Pin
Imran Adam24-Sep-06 5:38
Imran Adam24-Sep-06 5:38 
QuestionHandling redirects with HttpWebResponse Pin
derCola23-Sep-06 2:20
derCola23-Sep-06 2:20 
Questionkeys Pin
rzvme23-Sep-06 1:22
rzvme23-Sep-06 1:22 
AnswerRe: keys Pin
seq-23-Sep-06 6:50
seq-23-Sep-06 6:50 
GeneralRe: keys Pin
rzvme23-Sep-06 22:52
rzvme23-Sep-06 22:52 
GeneralRe: keys Pin
rzvme24-Sep-06 4:03
rzvme24-Sep-06 4:03 
Questionhow to print form in vs2005 ? Pin
hdv21223-Sep-06 1:03
hdv21223-Sep-06 1:03 
AnswerRe: how to print form in vs2005 ? Pin
Green Fuze23-Sep-06 6:03
Green Fuze23-Sep-06 6:03 
QuestionProperties.Settings - does it work ? Pin
Christian Graus23-Sep-06 0:38
protectorChristian Graus23-Sep-06 0:38 
OK, so I'm working on a little app, and I read about this new settings stuff, so I thought I'd give it a go. I've added a lot of stuff to a settings file and generated a class to read/write it, it looks something like this:

public class UserSettings : ApplicationSettingsBase
{
[UserScopedSetting()]
[DefaultSettingValue("1")]
public double SlideshowSpeed
{
get
{
return (double)(this["SlideshowSpeed"]);
}
set
{
this["SlideshowSpeed"] = value;
}
}
// etc

The help is useless, it seems to mostly be VB only. However, while this seems to work, it always returns the defaults. The properties in the app.config are matching the names in my class, as you can see. I have tried making them ApplicationScoped, as I realise I don't have a user named config file, nor do I see where to find one.

Then I read that Properties.Settings should give me a strongly typed collection of the items in my settings file. No, that plain does NOT work, in any way shape or form, despite all the examples on the web that indicate it should.

Is this stuff broken, or just really poorly documented ?


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

AnswerRe: Properties.Settings - does it work ? Pin
S. Senthil Kumar23-Sep-06 1:57
S. Senthil Kumar23-Sep-06 1:57 
GeneralRe: Properties.Settings - does it work ? Pin
Christian Graus23-Sep-06 18:54
protectorChristian Graus23-Sep-06 18:54 
GeneralRe: Properties.Settings - does it work ? Pin
S. Senthil Kumar24-Sep-06 19:05
S. Senthil Kumar24-Sep-06 19:05 
QuestionVoice capturing Pin
AB777123-Sep-06 0:11
AB777123-Sep-06 0:11 
QuestionQuestion about data transfer through tcp. Pin
Green Fuze22-Sep-06 23:23
Green Fuze22-Sep-06 23:23 
AnswerRe: Question about data transfer through tcp. Pin
Syed Mujtaba Hassan22-Sep-06 23:42
Syed Mujtaba Hassan22-Sep-06 23:42 
AnswerRe: Question about data transfer through tcp. Pin
Mike Dimmick23-Sep-06 1:05
Mike Dimmick23-Sep-06 1:05 
QuestionTo use C++ DLL in C#. Pin
Syed Mujtaba Hassan22-Sep-06 23:09
Syed Mujtaba Hassan22-Sep-06 23:09 
AnswerRe: To use C++ DLL in C#. Pin
Christian Graus23-Sep-06 1:11
protectorChristian Graus23-Sep-06 1:11 
GeneralRe: To use C++ DLL in C#. Pin
Syed Mujtaba Hassan24-Sep-06 23:59
Syed Mujtaba Hassan24-Sep-06 23:59 
GeneralRe: To use C++ DLL in C#. Pin
Christian Graus25-Sep-06 0:20
protectorChristian Graus25-Sep-06 0:20 
GeneralRe: To use C++ DLL in C#. Pin
Syed Mujtaba Hassan25-Sep-06 19:30
Syed Mujtaba Hassan25-Sep-06 19:30 

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.