Wednesday, 27 May 2009

Using registry from VB.net/express

Simple this:

to write:

SaveSetting("yourappname", "section", "key", value)

and to read:

myvar=getsetting("yourappname", "section", "key")

Don't forget to error handle (on error resume next) in case it can't find the app or key or value.

Write stuff best placed in myform.FormClosing.

No comments:

Post a Comment