Hi i am new user of Dot net and i want to show table data into a textbox from data reader but i dont know how to asing value to textbox.
plzzzzzzzzzzzz help me

Private Sub btnExecuteReader_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnExecuteReader.Click

' Create an instance of an Connection object
Dim cnn As OleDbConnection = New OleDbConnection( _
' Create instance of Command object
Dim cmd As OleDbCommand = New OleDbCommand()
' Set command's connection and command text
cmd.Connection = cnn
cmd.CommandType = CommandType.Text
cmd.CommandText = "select * from tablename where param1=@param1"
' Create parameter and set value
cmd.Parameters.Add(New SqlParameter("@param1", SqlDbType.Int))
cmd.Parameters("@param1").Direction = ParameterDirection.Input
cmd.Parameters("@param1").Value = Val(txtParam1.Text)

' Must open the Connection before calling ExecuteReader()
Dim reader As OleDbDataReader
reader = cmd.ExecuteReader()
While reader.Read()
txtResults.Text = txtResults.Text & reader("fname") & _
ControlChars.Tab & reader("lname") & _
ControlChars.Tab & ControlChars.Tab & _
reader("job_desc") & ControlChars.CrLf
End While
End Sub

This should give you the solution to the problem

how to to show data from a table using list box in vb.net