By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,806 Members | 1,343 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,806 IT Pros & Developers. It's quick & easy.

.ini File

P: n/a

I have about 10 values that I would like to store, that can be read by my
program when it starts. I am using an .ini file to do this. Everything I
read says .ini files or a thing of the past and should not be used. There
supposedly are better ways to accomplish this task. Could someone point me
to a better way. I am using VB2005.

Thanks

Thomas

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies

P: n/a
<th*****@msala.net> schrieb:
I have about 10 values that I would like to store, that can be read by my
program when it starts. I am using an .ini file to do this. Everything I
read says .ini files or a thing of the past and should not be used. There
supposedly are better ways to accomplish this task. Could someone point
me
to a better way. I am using VB2005.


Select "My Project" in the solution explorer, choose "Settings" and add the
settings. 'My.Settings.<setting name>' provides access to the settings.
Call 'My.Settings.Save' to save the current settings.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a

Ok, setting and reading these variables seems easy enough. I don't
understand why with all my internet searching I did not find this. Anyway,
how do you programically change these setting?

My.Settings.LCMROffset = strLCMROffset

does not work. Error states this is a read only setting.

Thanks,

Thomas

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Nov 21 '05 #3

P: n/a
Herfried,

I'm using VB.net 2003. Should this also be available in 03? I can't seem to
find it when I right click on by project, Add, Add New Item, I don't see
this option.

Thanks,
Bernie

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uA**************@TK2MSFTNGP09.phx.gbl...
<th*****@msala.net> schrieb:
I have about 10 values that I would like to store, that can be read by my
program when it starts. I am using an .ini file to do this. Everything
I
read says .ini files or a thing of the past and should not be used.
There
supposedly are better ways to accomplish this task. Could someone point
me
to a better way. I am using VB2005.


Select "My Project" in the solution explorer, choose "Settings" and add
the settings. 'My.Settings.<setting name>' provides access to the
settings. Call 'My.Settings.Save' to save the current settings.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

P: n/a
"Bernie Hunt" <bh***@optonline.net> schrieb:
I'm using VB.net 2003. Should this also be available in 03? I can't seem
to find it when I right click on by project, Add, Add New Item, I don't
see this option.


No, this feature is only available in VB 2005.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

P: n/a
Thanks! Then I'm crazy, at least about this one, hahaha.

Bernie

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
"Bernie Hunt" <bh***@optonline.net> schrieb:
I'm using VB.net 2003. Should this also be available in 03? I can't seem
to find it when I right click on by project, Add, Add New Item, I don't
see this option.


No, this feature is only available in VB 2005.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.