in VB how is it possible to make changes to the registry.

basically i want to be able 2 switch between 2 servers but the server "domain,ip"; is stored in the registry so i want to add 2 command buttons to my form.

Command 1 = Connect To Original Server
- will change the domain and ip to the original server

Command 2 = Connect To My Server
- will change the domain and ip to my server address

and also maybe have a check to know what server they are on.
if they connect to original server it displays some information in a text box or somethin... and if they connect to mine i can get it to display some of my server info. and if they are connected to my server and they attempt to press again a msg box will appear saying "already Connnected To This Server"

i can see this being alot of coding but if anyone can offer any help, tutorials or sample codes to get me started that would b great!