If you want to use the recordset and connection object, you would have to add a reference to ADODB (Right-click over references in solution explorer and add adodb).
Then, the declaration would be
Dim rs as ADODB.Recordset
Dim cn as ADODB.Connection
If you're new to .NET then you might want to do some research into the System.Data namespace to see how .NET handles data access. It's a lot different than VB6.
: What is the new declaration in declaring a recordset in vb.net
: before we used this code in vb6
: Dim rs as Recordset
: also in declaring a connection like this
: public function GetConnection as Connection
: end function
: pls. help me.