Read/write to ini-file
-
Hi All !! I am new on this forum. Just made my account today. Website looks great! I have been developping in Wedev and Clarion for many years. This year I have made the switch to VS 2005. Already I have looked shortly at VS2008. I must admit, I regret that I have not started with VS earlier....... In Windev we have always been working with ini-files. Would like to put in a ini-file several variables witch the user may change. Anyone a suggestion or a quick start for using ini-files? Second question .... if I may? I want to save user-setting in a configuration-file. Cann anyone give me also a quickstart? Thnxs Hans -- modified at 14:52 Thursday 29th November, 2007
-
Hi All !! I am new on this forum. Just made my account today. Website looks great! I have been developping in Wedev and Clarion for many years. This year I have made the switch to VS 2005. Already I have looked shortly at VS2008. I must admit, I regret that I have not started with VS earlier....... In Windev we have always been working with ini-files. Would like to put in a ini-file several variables witch the user may change. Anyone a suggestion or a quick start for using ini-files? Second question .... if I may? I want to save user-setting in a configuration-file. Cann anyone give me also a quickstart? Thnxs Hans -- modified at 14:52 Thursday 29th November, 2007
Hi, I think you must try the settings file, it's a new technique simple and beautiful. I'll show you a way to use it, go to project > new item > settings file (name it e.g. testsettings.settings) > add a new record (use the user scope). in your form: 'Read Dim s As New TestSettings MsgBox(s.FieldName) 'Update s.FieldName = NewValue s.Save() hope this helps NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice... http://www.facebook.com/group.php?gid=5932660937[^]
-
Hi, I think you must try the settings file, it's a new technique simple and beautiful. I'll show you a way to use it, go to project > new item > settings file (name it e.g. testsettings.settings) > add a new record (use the user scope). in your form: 'Read Dim s As New TestSettings MsgBox(s.FieldName) 'Update s.FieldName = NewValue s.Save() hope this helps NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice... http://www.facebook.com/group.php?gid=5932660937[^]
Hi Naji, Thnxs for youw wonderfull tip. It worked right away!!! :-D I will forget about the ini-files and use the settings-option provided bij VB.net. Greetz Hans
-
Hi All !! I am new on this forum. Just made my account today. Website looks great! I have been developping in Wedev and Clarion for many years. This year I have made the switch to VS 2005. Already I have looked shortly at VS2008. I must admit, I regret that I have not started with VS earlier....... In Windev we have always been working with ini-files. Would like to put in a ini-file several variables witch the user may change. Anyone a suggestion or a quick start for using ini-files? Second question .... if I may? I want to save user-setting in a configuration-file. Cann anyone give me also a quickstart? Thnxs Hans -- modified at 14:52 Thursday 29th November, 2007
Check out this: http://www.codeproject.com/csharp/cs_ini.asp[^]
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson