Windows Forms, Visual Studio C# - Why would/should I use a settings windows instead of saving in a file?

You can store it in a flat file. But, with C# in VS IDE there is a default support to store and access these settings.

Why would/should I use a ". Settings" file instead of taking the information and storing it in a flat file? You can store it in a flat file.

But, with C# in VS IDE there is a default support to store and access these settings From MSDN: ....allows you to create and access values that are persisted between application execution sessions. These values are called settings. Settings can represent user preferences, or valuable information the application needs to use.

For example, you might create a series of settings that store user preferences for the color scheme of an application. Or you might store the connection string that specifies a database that your application uses. Settings allow you to both persist information that is critical to the application outside of the code, and to create profiles that store the preferences of individual users.

How do I access and modify the settings from this window from my application windows. Do I need to create an instance of the file or is it static? How do I access and modify the settings from this window from my application windows.

Refer to these links: msdn.microsoft.com/en-us/library/aa73086... jeffkwak.com/blog/archive/2008/02/29/win....

In addition to PK's excellent answer, the settings are also strongly-typed. When you get/set settings within your code, they are already in the required type, so you don't have to worry about serialization - it's handled for you.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions