Namespace: Microsoft.VisualBasic.Compatibility.VB6
Assembly: Microsoft.VisualBasic.Compatibility.Data (in microsoft.visualbasic.compatibility.data.dll)
LockType is used to Gets or sets a value that indicates the type of concurrency handling.
CursorType is used to Gets or sets a value that specifies the default type of cursor to use when opening a result set from the specified query.
1) Right click on your project reference and click on add reference.
2) Click on COM Tab
3) Look for following Component name (Assembly reference)
Microsoft.VisualBasic.Compatibility
Add that and inorder to reference that in your project use
Imports Microsoft.VisualBasic.Compatibility.VB6
This will fix your problem.