Using VB.NET
I am using Combobox, when i select the value in combobox, the date value should display in datetimepicker where date = combobox id
vb6 code
cmd.CommandText = "select distinct Name from T_Person where personid = '" & txtno & "'"
Set rs = cmd.Execute
While Not rs.EOF
If Not IsNull(rs("Name")) Then
txtName.Text = rs("Name")
rs.MoveNext
End If
Wend
txtno - combobox, txtname = datetimepicker1
The above code is working in vb6, But am new to vb.net
How to modify my code in vb.net
Need vb.net code help