'Fill data to datatable
Dim DTB As New DataTable <--- Error occurs here
A Dim Statement (Visual Basic) uses a New (Visual Basic) clause when declaring a variable to be of an interface type.
Although an interface is a reference type, you cannot create an instance of it. You can use New only to create an instance of a class or a structure.
Normally in DataTable case it's conflicts happening between the namespace. better use full namespace and see if it again throws error.
Dim dt As New System.Data.DataTable