Insert/Save data into data base window form application

Publié le: 04 novembre 2019
sur la chaîne: 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.


Sur cette page du site, vous pouvez voir la vidéo en ligne Insert/Save data into data base window form application durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Teach w3school 04 novembre 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 40 fois et il a aimé 2 téléspectateurs. Bon visionnage!