TabControl
is a container to hold other controls like
TextBox
,
DataGridView
etc.
To connect with database you need to create a
DataSet
with
DataTable
s, then fill the
DataTable
s from database and after making any modifications you can save the data contained in the
DataTable
s to the database. To display the data from
DataTable
s, controls with data binding capability like
DataGridView
are to be used. The following article
General purpose class to fill DataTable(s) from DataBase and to save DataTable(s) to DataBase using reflection[
^]
will give you an idea.
This being your project, first study the relevant data and write your own code according to your requirement.