Primary knowledge WinForm and C #----A simple address book involving SQL database (CONTACT3)

Source: Internet
Author: User

I. About WinForm

Start the program and display the form--------------------------------"Program.cs"------------------used to start the program, showing the most basic form

Many controls in Winfom (form)------------------------"Form1.cs"---------------------used to define the control form, and the objects in it,

------"Form1. Designer.cs "----------Define the behavior of the form and the objects in it, that is, the function, or method.

Resource-----------------------------------"Form1.resx"------------------to save resources in the project

Two. About Bin folder, Debug folder, Release folder, and obj folder

  The Bin folder contains----------------Debug folder---------is the repository for files that are generated by the final code when debugging, that is, the debug version of the software

-----The Release folder-------no debug code, code-optimized software, and the final Code storage directory

The obj folder contains-----------------the Debug folder---------is a directory of files that are intermediate code generated when debugging, and is generally of no use

-----Release Folder--------is the release version of the generated intermediate code storage directory,

Three. About the creation of SQL database and the addition of datasets

  What: the warehouse where data is stored, all changes to the data are supported by the database

Why to build a database (the role of the database): is to give the data set of interfaces, and can be organized according to certain rules of the stored data (a relatively simple way: Table storage data-tables in the presence of primary keys, and identity columns, etc.)

What to do: Create a new item on a project, a service-based database, and then

The new "project name Db.mdf" is our new SQL database, simple SQL database can be a "table" way to hold the data, we use such as "table" to produce a dataset, and the definition of the dataset is flexible, not necessarily a table is a data set,

Four. Data sources

  A data source is a window into which a database interacts with forms and controls

Written in 16/2/29/0:28

  

  

  

Primary Knowledge WinForm and C #----A simple Address Book (CONTACT3) that involves SQL database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.