Wrox Programmer Forums
Welcome to the p2p.wrox.com Forums.

You are currently viewing the WinForms/Console Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 20th, 2009, 01:03 AM
Friend of Wrox
Join Date: Apr 2005
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to use Settings.Settings

Hi All !,

I want to use the Settings.settings in a Windows Application to store my database Connection String. I have created a variable and kept the scope as Application. However I am not able to use it properly in my pages. I do not know what namespaces,classes or properties I need to call.

In Web Application it was simple to use by using the ConfigurationSettings.AppConfig methods & properties.

Can anyone help ??

Thanks in advance

Old October 20th, 2009, 09:09 AM
Friend of Wrox
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts

When using the Settings file, set it's Scope to "Application".

You should be able to open the Settings.settings file and modify if you want.

To access, you can use the following:

Please check the following links:
Om Prakash Pant
Click the "Thanks" button if this post helped you.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Settings.settings when assembly is in GAC evandro.paula .NET Framework 2.0 0 September 25th, 2007 09:54 AM
Settings files neilsands Pro Java 0 May 2nd, 2006 10:46 AM
Printer settings rajanikrishna Classic ASP Professional 8 April 7th, 2006 03:48 AM
javascript settings rohrbach Javascript How-To 1 July 5th, 2004 09:03 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.