"John Devlon" <jo********@hotmail.comwrote in message
news:Wz**********************@phobos.telenet-ops.be...
>
Hi Greg,
Thanx for the great advice...
Do you know where I can find a good manuel on the web on how to read and
write to the user preferences ?
Many Thanx
John
It's very basic. Add in your user preferences (I change their Roaming
property from False to True).
To read a value: eg,
sAppVers = My.Settings.AppVers
sDatabaseDir = My.Settings.DatabaseDirectory
sInputDir = My.Settings.InputDirectory
To save a new value: eg,
My.Settings.AppVers = "1.1"
My.Settings.DBName = "northwind.mdb"
My.Settings.Save()
Very easy. Cheers.