2
What is VB? I suppose there is not a module for it in the repository?
If it is in php, you can include /mainfile.php, which contain the credentials to the MySQL database. For login you can check out the XoopsUser object. It depends on which way you want to do the logins and what program manages the users.