Connecting Vb.Net to ODBC Module

  1. kamidear76
    kamidear76
    I am new to VB.Net trying to convert my vb6 module into vb.net but failed. Can anybody help ?

    vb6 Code :

    Code:
    Public UType As Integer Public UName As String Public Upass As String Public CN As New ADODB.Connection Public Sub OpenDatabaseConnection() With CN .CursorLocation = adUseClient .ConnectionString = "DSN=Techno;Uid=sa;Pwd=shutup32;Mode=Read|Write;Persist " .Open End With End Sub
    Please convert it into vb.net (visual Studio 2010 , .Net Framework 4 )
Results 1 to 1 of 1