Insert/Save data into data base window form application

Pubblicato il: 04 novembre 2019
sul canale di: Teach w3school
40
2

Winform Application

Step 1: Open Visual Studio 2010. Go to File, New, Projects and under Visual C# select Windows.


You can change the name of the project and browse your project to different location too. And then press OK

Step 2: In Solution Explorer you will get your Project Add Service Based Database by going to your Project. Right click and Add New Item, then select Service-based Database.


Step 3: Go to your Database Database.mdf and we will create a table tbl_save. Go to the database.mdf, then Table and Add New table. Design your table like the following screenshot:

Step 4: Now open your Form1.cs file, where we create our design for inserting data into the database. We will drag three labels, three textbox and one button from the tool box to Form1.cs. You will see your Form look like the following screenshot:

Right click on the blank part of Form1.cs, then click View Code. You can see you are entered in the code part of the form. Write the following code and then Press F5 to run the project.


In questa pagina del sito puoi guardare il video online Insert/Save data into data base window form application della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Teach w3school 04 novembre 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 40 volte e gli è piaciuto 2 spettatori. Buona visione!