You need this one:
Dim m_connString As String = "Provider=VFPOLEDB;Data Source=c:\database\main.dbc"
This one uses the default mode 16, "Share Deny None".
Dim m_connString As String = "Provider=VFPOLEDB;Data Source=c:\database"
would also work, provided the tables are in that folder (if you are not using fullpath).
When you get such a message about the dbc you can say that it is in exclusive use somewhere.
Cetin Basoz