asked on
Dim cnString3 As String = My.Settings.DataCon
Dim strQuery3 As String = "SELECT * From t_user"
Using adapter As New MySqlDataAdapter(strQuery3, cnString3)
Dim myDataSet As New DataTable()
Try
adapter.Fill(myDataSet)
Catch exError As Exception
MessageBox.Show(exError.Message, _
Me.Text, _
MessageBoxButtons.OK, _
MessageBoxIcon.Error)
Exit Sub
End Try
'FILL DATAGRIBVIEW FROM DATABASE
Me.DataGridView1.DataSource = myDataSet
End Using
ASKER
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
Open in new window