Professional Documents
Culture Documents
Institute of Technology
Faculty of Computing & Software Engineering
Event Driven
Visual Studio.NET
C++ VB C# JScript …
IL(Intermediate
Language) code
CLR just-in-time
execution 16
.NET Framework Architecture
3. Common Language Runtime (CLR)
Intermediate Language (IL)
• .NET languages are not compiled to machine code
• compiled to an Intermediate Language (IL)
• CLR accepts IL code & recompiles it to the machine
23
Visual Studio IDE Start Page
Visual Studio Environment
31
IDE Main Window Components
Toolbox
Holds the controls you place on a form.
There are various tool tabs available in the
Toolbox.
controls in the IDE are presented in a hierarchical
manner (e.g., Standard Tab, Data Tab, Validation,
To move a control
41
Adding Controls to Form
Adding Controls graphically by Using Windows Forms Designer
:
ike
kl
l oo
ll
wi
42
Adding Controls to Form
• Adding Controls Programmatically at run time
involves more effort in finding the exact location where to
display the controls on the form than in plotting the controls
via the Windows Forms Designer
1. Create a new Windows Application project name it
58
Properties, Methods, & Events
Events Procedures
Usually, nothing happens until the user does something and
generates an event
Syntax:
private return_type objectName_event(...) {
Example:
private void btnShow_Click(object sender, EventArgs e){
int mark = int.Parse(txtMark.Text);
} 59
The End!
Questions, Ambiguities,