I designed a program in vb6 which lets the user navigate through the table. now I am transferring this software to vb .net.now my question is how to perform these functionalities in vb .net. here is my code that opens the database
Dim constr As String = "data source=DESKTOP-MDOP24UGORASHY;" & "initial catalog=test;integrated security=SSPI;"
Dim con As SqlConnection = New SqlConnection(constr)
Dim cmd As SqlCommand = New SqlCommand("SELECT * from
words")
cmd.CommandType = CommandType.Text
cmd.Connection = con
con.Open()
Dim sdr As SqlDataReader = cmd.ExecuteReader()
sdr.Read()
TextBox1.Text = sdr("word-no").ToString
TextBox2.Text = sdr("word").ToString