You do not (and can not) refresh the registry (using
VB or any other language for that matter). The registry is simply a big database, once you write to it, the data is there for everyone to see (assuming they have the appropriate permission).
I assume you are asking the question because you are writing something to the registry in
VB and then checking for its existence and it is not showing up. If this is the case then it may be because you have not closed the key you are working with. You need to do this to flush the data to the registry (in the same way you have to do a .Update to a database object after changing a field). When your program ends or you close
VB then all the registry keys you have opened are automatically closed, thus being flushed to the registry. This might be why your program can not see the key, but when you re-run it the program can find the key.
Regards
Owain Williams