Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
SqlConnection1.Open()
Dim ds As DataSet = DataSet2
ds.clear()
SqlDataAdapter1.SelectCommand = New SqlCommand("select * from dtht_ms where dtht_ml='" & TextBox1.Text & "'", SqlConnection1)
SqlDataAdapter1.Fill(ds, "dtht_ms")
DataGrid1.DataSource = ds.Tables("dtht_ms")
Catch sql As Sqlclient.SqlException
MsgBox("sql information:" & sql.Message)
Catch ex As Exception
MsgBox("system information:" & ex.Message)
Finally
SqlConnection1.Close()
End Try
End Sub