Click here to Skip to main content
15,896,153 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am doing PROJECT in dotnet. i have used tab control in my form but i am not getting that how should i connect the database with the control.. Should i use multiple tables as much as my tab pages..what is the code for recording all tab pages information in one table
Posted

Sorry, such code cannot even theoretically exist. Why? The title or your question says: "code for my project". As soon as anyone gives you the code, it won't be your project anymore.

Sorry, but you are asking for the impossible.

—SA
 
Share this answer
 
TabControl is a container to hold other controls like TextBox, DataGridView etc.
To connect with database you need to create a DataSet with DataTables, then fill the DataTables from database and after making any modifications you can save the data contained in the DataTables to the database. To display the data from DataTables, 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.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900