รายละเอียดของการตอบ ::
Imports System.Data.SqlClient
Imports System.Data.OleDb
Imports System.Data
Public Class find
Private Sub btnFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFind.Click
Me.StudentBindingSource.Filter = "TO_DAY >= '" & DateTimePicker1.Value.ToString("s") & "' AND TO_DAY <= '" & DateTimePicker2.Value.ToString("s") & "'"
End Sub
Private Sub find_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'Testfind.student' table. You can move, or remove it, as needed.
Me.StudentTableAdapter.Fill(Me.Testfind.student)
End Sub
Private Sub FillByToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Try
Me.StudentTableAdapter.FillBy(Me.Testfind.student)
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
End Sub
End Class