控制項與程式碼的關係 The relationship between control and code

此篇文章將協助開發者了解控制項與程式碼的關係
This article helps developers understand the relationship between control and code

在Visual Studio,每一個控制項都會有屬於它自己的事件。當事件被觸發時,就會讓程式執行。
In Visual studio, each control item will have its own event. When event is triggered, the program will be executed.

以Button為例,只要對控制項點擊2下,系統便幫你寫下部分程式碼。而程式碼寫在2個大括號內即可
Take Button as example, system will write some code for you when click 2 times on control. Your code can written in 2 curly brackets.