Setting Driver Properties
COMDriver obtains its configuration from a file called driver.properties. It is possible to override the values in driver.properties programmatically, using the DriverManager class. This ability is most commonly used to set a user name and password for authentication to the Grid. Setting these values in the code allows different users to reference the same driver.properties file, and avoids having a cleartext password in the file. To set the user name and password in your code, place the following lines before any other use of COMDriver. This code assumes that user and password are variables that have been set to the desired user name and password.
Dim dm As New DSCOMDRIVERLib.DriverManager
dm.setProperty DSUSERNAME, user
dm.setProperty DSPASSWORD, password