Click here to Skip to main content
15,917,928 members
Home / Discussions / C#
   

C#

 
GeneralRe: KeyDown event is not firing while draging node on treeview Pin
leppie19-Jul-04 6:59
leppie19-Jul-04 6:59 
GeneralRe: KeyDown event is not firing while draging node on treeview Pin
Heath Stewart19-Jul-04 9:10
protectorHeath Stewart19-Jul-04 9:10 
GeneralReturning a filtered DataTable Pin
Andy H19-Jul-04 6:44
Andy H19-Jul-04 6:44 
GeneralRe: Returning a filtered DataTable Pin
Werdna19-Jul-04 8:58
Werdna19-Jul-04 8:58 
GeneralRe: Returning a filtered DataTable Pin
Heath Stewart19-Jul-04 9:04
protectorHeath Stewart19-Jul-04 9:04 
GeneralRe: Returning a filtered DataTable Pin
Andy H19-Jul-04 22:40
Andy H19-Jul-04 22:40 
Generalfunction usage in a .config file Pin
Ryan@Salamandertechnologies.com19-Jul-04 6:39
sussRyan@Salamandertechnologies.com19-Jul-04 6:39 
GeneralRe: function usage in a .config file Pin
Heath Stewart19-Jul-04 8:38
protectorHeath Stewart19-Jul-04 8:38 
If you want the application path, simply use Application.StartupPath. Don't force a user to put the path of the executable into the .config file in that very path - it's redundent, requires extra steps (always faulty), and is easy to get from code (even with native executables).

If you want simple string settings, see ConfigurationSettings.AppSettings in the .NET Framework SDK, which also includes examples.

If you want to make your own configuration section, implement IConfigurationSectionHandler, which is documented in the .NET Framework SDK as well and includes samples. There are also several articles here on CodeProject that discuss section handlers that you should search for.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: function usage in a .config file Pin
RB@Emphasys19-Jul-04 9:02
RB@Emphasys19-Jul-04 9:02 
GeneralRe: function usage in a .config file Pin
Heath Stewart19-Jul-04 9:07
protectorHeath Stewart19-Jul-04 9:07 
GeneralRe: function usage in a .config file Pin
Andy Brummer19-Jul-04 9:12
sitebuilderAndy Brummer19-Jul-04 9:12 
GeneralRe: function usage in a .config file Pin
RB@Emphasys19-Jul-04 9:48
RB@Emphasys19-Jul-04 9:48 
GeneralApplicationException VS Exception Pin
Gimpy198319-Jul-04 5:00
Gimpy198319-Jul-04 5:00 
GeneralRe: ApplicationException VS Exception Pin
Heath Stewart19-Jul-04 5:30
protectorHeath Stewart19-Jul-04 5:30 
GeneralCalled but not executed :confused: Pin
Gimpy198319-Jul-04 4:54
Gimpy198319-Jul-04 4:54 
GeneralRe: Called but not executed :confused: Pin
Heath Stewart19-Jul-04 5:35
protectorHeath Stewart19-Jul-04 5:35 
GeneralRe: Called but not executed :confused: Pin
Gimpy198319-Jul-04 9:27
Gimpy198319-Jul-04 9:27 
GeneralRe: Called but not executed :confused: Pin
Heath Stewart19-Jul-04 9:32
protectorHeath Stewart19-Jul-04 9:32 
GeneralGoing Unmanaged doesn't free Memory Pin
Guilio karadanais19-Jul-04 4:24
Guilio karadanais19-Jul-04 4:24 
GeneralRe: Going Unmanaged doesn't free Memory Pin
Heath Stewart19-Jul-04 4:37
protectorHeath Stewart19-Jul-04 4:37 
GeneralRe: Going Unmanaged doesn't free Memory Pin
Guilio karadanais19-Jul-04 5:07
Guilio karadanais19-Jul-04 5:07 
GeneralHex to Dec conversion (big numbas!) Pin
Blubbo19-Jul-04 4:06
Blubbo19-Jul-04 4:06 
GeneralRe: Hex to Dec conversion (big numbas!) Pin
Heath Stewart19-Jul-04 4:30
protectorHeath Stewart19-Jul-04 4:30 
GeneralEAP Certificate requests... Pin
Vodstok19-Jul-04 4:03
Vodstok19-Jul-04 4:03 
GeneralRe: EAP Certificate requests... Pin
Heath Stewart19-Jul-04 4:42
protectorHeath Stewart19-Jul-04 4: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.