Click here to Skip to main content
15,895,841 members
Home / Discussions / C#
   

C#

 
GeneralRe: Open an URL and get an URL Pin
Heath Stewart22-Apr-04 9:51
protectorHeath Stewart22-Apr-04 9:51 
GeneralExtrending properties - version - other version information dialog Pin
DavidNohejl22-Apr-04 9:33
DavidNohejl22-Apr-04 9:33 
GeneralRe: Extrending properties - version - other version information dialog Pin
Heath Stewart22-Apr-04 9:47
protectorHeath Stewart22-Apr-04 9:47 
GeneralRe: Extrending properties - version - other version information dialog Pin
DavidNohejl23-Apr-04 7:02
DavidNohejl23-Apr-04 7:02 
GeneralRe: Extrending properties - version - other version information dialog Pin
Heath Stewart23-Apr-04 7:19
protectorHeath Stewart23-Apr-04 7:19 
GeneralRe: Extrending properties - version - other version information dialog Pin
DavidNohejl24-Apr-04 5:05
DavidNohejl24-Apr-04 5:05 
GeneralConfiguration Files Pin
BrianEllis22-Apr-04 9:29
BrianEllis22-Apr-04 9:29 
GeneralRe: Configuration Files Pin
Heath Stewart22-Apr-04 9:46
protectorHeath Stewart22-Apr-04 9:46 
Use a .config file - the standard configuration file for .NET applications. Besides including all sorts of runtime configuration, key/value app settings, and what not - it's also an extensible system. See the IConfigurationSectionHandler interface in the System.Configuration namespace in the .NET Framework SDK for more information.

This is best, IMO, because it keeps an application's configuration in a common place and works with the .NET configuration model, which also includes general settings using the machine.config file.

While the documentation I mentioned should mention this, a .config file is either Web.config for ASP.NET or MyApplicationName.exe.config (obviously, replace "MyApplicationName" with the actual exec name) and is in the same directory as the application. This is all default, anyway.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Configuration Files Pin
BrianEllis22-Apr-04 10:06
BrianEllis22-Apr-04 10:06 
GeneralDesigner Question Pin
Jamie Nordmeyer22-Apr-04 9:15
Jamie Nordmeyer22-Apr-04 9:15 
GeneralRe: Designer Question Pin
Heath Stewart22-Apr-04 9:27
protectorHeath Stewart22-Apr-04 9:27 
GeneralRe: Designer Question Pin
Jamie Nordmeyer22-Apr-04 9:42
Jamie Nordmeyer22-Apr-04 9:42 
GeneralRe: Designer Question Pin
Heath Stewart22-Apr-04 9:44
protectorHeath Stewart22-Apr-04 9:44 
GeneralRe: Designer Question Pin
Jamie Nordmeyer22-Apr-04 9:49
Jamie Nordmeyer22-Apr-04 9:49 
GeneralMessage Removed Pin
22-Apr-04 8:46
wibblewibblewibble22-Apr-04 8:46 
GeneralRe: Missing Namespaces ... Pin
Heath Stewart22-Apr-04 8:49
protectorHeath Stewart22-Apr-04 8:49 
General[Message Deleted] Pin
Peter Nirschl22-Apr-04 8:14
Peter Nirschl22-Apr-04 8:14 
GeneralRe: Draw Shadow Pin
Heath Stewart22-Apr-04 8:50
protectorHeath Stewart22-Apr-04 8:50 
GeneralRe: Draw Shadow Pin
Peter Nirschl23-Apr-04 6:13
Peter Nirschl23-Apr-04 6:13 
GeneralRe: Draw Shadow Pin
Heath Stewart23-Apr-04 6:18
protectorHeath Stewart23-Apr-04 6:18 
GeneralRe: Draw Shadow Pin
Peter Nirschl23-Apr-04 21:28
Peter Nirschl23-Apr-04 21:28 
GeneralGame of life Pin
lssu22-Apr-04 8:06
lssu22-Apr-04 8:06 
GeneralWeb Parts for SharePoint Pin
Mabuti22-Apr-04 7:17
Mabuti22-Apr-04 7:17 
GeneralRe: Web Parts for SharePoint Pin
Heath Stewart22-Apr-04 7:27
protectorHeath Stewart22-Apr-04 7:27 
GeneralRe: Web Parts for SharePoint Pin
Daniel M. Edwards22-Apr-04 13:10
Daniel M. Edwards22-Apr-04 13:10 

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.