There are two ways:
You can use the inbuilt functions of VB to access the registry. In
that case you are stuck to a limited portion of the registry. The
functions are GetSetting, SaveSetting etc.
If you need to access the whole of registry, you can use the api
calls to do that.I am attaching a class file which has all the functions written.
If you need to learn more about this, take a look at this link http://www.vbworld.com/registry/