SlideShare a Scribd company logo
In this session, you will learn to:
Appreciate the Graphical User Interface (GUI)
Identify the controls of GUI
Objectives
Appreciate the Graphical User Interface
What is a user
interface?
Appreciate the Graphical User Interface (Contd.)
An interface is a layer
between a user and an
application. It helps the
user to interact with the
application.
The two types of user interface are:
Character User Interface (CUI)
Graphical User Interface (GUI)
Appreciate the Graphical User Interface (Contd.)
Enter your name: John
Enter a book name: Famous Five
Sorry, The book is not available.
Do you want to check for another book (y/n):
In CUI, the user interacts with an application by typing
commands.
The following figure shows the sample output of a
CUI application.
A GUI provides a picture-oriented or graphical
way of interacting with an application.
The following figure shows a sample output of a GUI
application.
Advantages of GUI applications are:
They are easy to learn and use.
The users need not remember the lines of syntax.
Most of the commands are executed by using mouse.
Appreciate the Graphical User Interface (Contd.)
A GUI application interacts with the users through various
components, called controls.
The following figure shows a GUI screen containing various
controls.
Identifying the Controls of GUI
Label
Text Box
Button
Combo Box
Just a minute
A ____________ is a control that consists of other controls.
Answer:
Container
Windows provides the following types of dialog boxes:
Modal
System modal
Modeless
Identifying the Controls of GUI (Contd.)
Modal:
It does not allow the user to switch focus to another area of the
application, which has invoked the dialog box.
It allows the user to switch to other Windows applications.
The Save As dialog box of Microsoft Word is an example of
modal dialog box.
Identifying the Controls of GUI (Contd.)
The following figure shows the Save As dialog box.
Identifying the Controls of GUI (Contd.)
System modal:
It takes control of the entire Windows environment.
It does not allow the user to switch to any other Windows
application until it is closed.
The Log On to Windows dialog box is an example of system modal
dialog box.
Identifying the Controls of GUI (Contd.)
The following figure shows the Log On to Windows dialog
box.
Identifying the Controls of GUI (Contd.)
Modeless:
It allows the users to switch to another area of the application or to
another Windows application.
It remains on the screen and is available for use at any time.
The Find and Replace dialog box of Microsoft Word is an example
of modeless dialog box.
Identifying the Controls of GUI (Contd.)
The following figure shows the Find and Replace dialog box.
Identifying the Controls of GUI (Contd.)
Just a minute
Which dialog box allows users to switch to another area of
the application, which has invoked it?
Answer:
Modeless dialog box
Just a minute
A __________ acts as a container for a group of related
controls.
Answer:
Dialog box
Identifying the Features of the Windows Environment
The features of the Windows environment that enable
applications to interact effectively with the user are:
Event-driven programming
Dynamic linking
Identifying the Features of the Windows Environment (Contd.)
Event-driven programming:
Windows application can execute programs on a click of a mouse.
An event is an action performed by the user.
Windows applications generate messages in response to each
action performed by the user.
Depending on the messages received, the application performs
preprogrammed functions.
Based on user’s input, an event gets generated. The code
corresponding to the event is executed.
Identifying the Features of the Windows Environment (Contd.)
Dynamic linking:
The process by which an application is linked to the library
functions at run time.
The reference to the function is looked up at run time. This is called
dynamic linking.
In this session, you learned that:
GUI enables the users to interact with the application by using
graphical components.
Windows provides three types of dialog boxes:
Modal dialog box
System modal dialog box
Modeless dialog box
The main features of the Windows environment are:
Event-driven programming
Dynamic linking
Summary
In this session, you will learn to:
Identify the features of .NET Framework
Objectives
Identifying the Features of .NET Framework
What is .NET
Framework?
Identifying the Features of .NET Framework (Contd.)
.NET Framework is an
integrated technology that
helps in creating and
running robust, scalable,
and distributed
applications.
Microsoft introduced the .NET Framework to enhance the
interoperability of applications.
The .NET Framework is designed to make improvements in:
Code reuse
Code specialization
Resource management
Multilanguage development
Security
Deployment
Administration
Identifying the Features of .NET Framework (Contd.)
.NET Framework offers a complete suite for developing and
deploying applications.
The suit consists of:
.NET Products
.NET Services
.NET Framework
Identifying the Features of .NET Framework (Contd.)
The following figure shows the different components of
the .NET Framework.
Components of the .NET Framework
CLR is the
environment in which
all programs that use
.NET technologies
are executed.
The CLR allows the
execution of code
across different
platforms by
translating code into
Intermediate
Language (IL).
At the presentation
layer, .NET
provides three types
of user interfaces.
They are
Windows Forms,
Web Forms, and
Console Applications.
The .NET
Framework
class library works
with any .NET
language, such as
VB.NET, VC++
.NET, and VC#.
The .NET
Framework class
library comprises
namespaces, which
are contained within
assemblies.
Identifying the process of compilation:
Compilation is the process of creating an executable program
from the source code. It converts source code into machine
language.
In .NET, the conversion of source code to machine language
takes place in two stages:
In the first stage, the compiler translates code into an IL instead of
machine language or assembly language.
In the second stage, the JIT compiler converts IL into machine
language at run time.
Components of the .NET Framework (Contd.)
The following figure shows the process of code compilation.
Components of the .NET Framework (Contd.)
Program Code
Compiler
IL Metadata
Assembly
+
Machine Code
JIT Compiler
Identifying the process of code execution:
During execution, CLR performs the following steps:
Loading assemblies and identifying namespaces
JIT compilation
Garbage collection
Components of the .NET Framework (Contd.)
The following figure shows the process of code compilation.
Components of the .NET Framework (Contd.)
SetTopScore()
IgnoreScore()
SetTopScore()
Visual C# Code IL Code
IgnoreScore()
The following figure shows the process of code execution.
Components of the .NET Framework (Contd.)
JIT
SetTopScore()
IgnoreScore()
SetTopScore()
Machine LanguageIL Code
is invoked
SetTopScore()
The following advantages are offered by the .NET
Framework:
Consistent programming model: The .NET Framework
provides a common object-oriented programming model across
languages.
Multi-platform applications: A .NET application can be executed
on any platform and architecture supported by CLR.
Multi-language integration: .The NET Framework allows
integration of multiple languages. You can create a VC# class
deriving from a VB.NET class.
Automatic resource management: The CLR tracks resource
usage and relieves a programmer from the task of manual
resource management.
Ease of deployment: .NET applications can be deployed simply
by copying files to the target computer.
Components of the .NET Framework (Contd.)
In this session, you learned that:
.NET Framework is made up of many components, such as
CLS, CLR, and JIT compiler.
The CLR is the environment where all .NET applications are
executed.
CLS is a set of rules that are followed by all the languages of
the .NET Framework.
When a program is compiled by using Visual Studio, the
compiler translates the code into IL instead of machine
language.
The JIT compiler is used to translate the code from IL into
machine language.
Summary
In this session, you will learn to:
Use Windows project by using Visual Studio .NET integrated
development environment
Objectives
The Visual Studio .NET IDE provides you with a common
interface for developing various kinds of applications.
The IDE also provides you with a centralized location for:
Designing the user interface for an application.
Writing code for the application.
Compiling the application.
Debugging the application.
Using Visual Studio .NET IDE
In Visual Studio .NET, an application can be made up of one
or more items, such as files and folders.
To organize these items efficiently, Visual Studio .NET
provides two types of containers:
Projects
Solutions
Creating Projects and Solutions
Project:
It contains interrelated items that make up the application.
It allows you to manage, build, and debug the items.
An executable file (.exe) or a Dynamic Link Library (.dll) is created
when you build a project. These files are called the project output.
Solution:
It acts as a container for one or more projects.
It allows you to work on multiple projects within the same instance
of the Visual Studio .NET IDE.
Creating Projects and Solutions (Contd.)
The following figure shows a solution containing multiple
projects.
Creating Projects and Solutions (Contd.)
Solution
Project 1
Project 2
Miscellaneous Files
Project 1
Items
Project 2
Items
Creating Projects and Solutions (Contd.)
Let us see how to create a
Windows application in
Visual Studio .NET IDE.
The following table describes various templates available in
the Templates pane.
Creating Projects and Solutions (Contd.)
Template Description
Windows Application It creates Windows-based application.
Class Library It creates a class or a reusable component (.dll or .exe) that exposes
some functionality to be used in various projects.
Windows Control
Library
It creates a custom control that can be added to the user interface.
Console Application It creates a CUI-based application that can run from the command
prompt.
Device Application It creates a .NET Compact Framework 2.0 forms application for Pocket
PC 2003 and later.
Crystal Reports
Application
It adds a Windows user interface and a sample crystal report in the
.NET application.
Just a minute
Which template creates a .NET Compact Framework 2.0
forms application for Pocket PC 2003 and later?
1. Windows Control Library
2. Class Library
3. Device Application
4. Web Control Library
Answer:
3. Device Application
Creating Projects and Solutions (Contd.)
Let us see various user
interface elements of
Visual Studio .NET IDE.
The following figure shows various interface elements of
Visual Studio .NET IDE.
Creating Projects and Solutions (Contd.)
Solution Explorer
Window
Windows Form
Designer
Toolbox
Window
Properties Window
Output Window
Menu Bar
The following table describes various windows of Visual
Studio .NET IDE.
Creating Projects and Solutions (Contd.)
Window Name Description
Output Window It displays messages regarding the status of various features provided
in the Visual Studio. You can open it by selecting ViewOutput.
Alternatively, you can use the key combination Ctrl+W, O.
Server Explorer
Window
It is a tool used for various administrative tasks, such as monitoring the
performance of other machines on a network, and locating and
connecting to the various servers on the network. You can open it by
selecting ViewServer Explorer. Alternatively, you can use the key
combination CTRL+W, L.
Class View Window It displays the classes, methods, and properties associated with a
particular file. You can open it by selecting ViewClass View.
Alternatively, you can use the key combination Ctrl+W, C.
Dynamic Help
Window
It provides you with context-sensitive help. You can open the dynamic
help window by selecting HelpDynamic Help. Alternatively, you can
use the key combination CTRL+F1, D.
Just a minute
Which window displays messages for the status of various
features provided in the Visual Studio .NET IDE?
Answer:
The Output Window
Just a minute
Which window allows to view the resources of the servers,
such as services, processes, and the event log?
Answer:
The Server Explorer window
Navigational Features in Visual Studio .NET IDE
The three navigational features provided by Visual Studio
.NET IDE are:
Docking: Allows you to place a window against any of the
edges of the parent window.
Tabbed: Allows overlapping of various open windows and
navigating between them by using tabs.
Auto Hide: Automatically hides a window when it is not in use.
Navigational Features in Visual Studio .NET IDE (Contd.)
Let us see how to use
various navigational
features provided by the
Visual Studio .NET IDE.
Compiling and Executing a Project
Let us see how to compile
and execute an
application.
In this session, you learned that:
The Visual Studio 2005 IDE provides you with a common
interface for developing various kinds of applications on the
.NET Framework.
Some of the components of the Visual Studio .NET IDE are:
The Windows Forms Designer
The Solution Explorer window
The Properties window
The Toolbox window
The Output window
The Code and Text Editor window
Summary
The Visual Studio .NET IDE also provides three navigational
features. These are:
Docking
Tabbed
Auto hide
Summary (Contd.)
Let me give you some
questions to solve at
home.
Home Assignment

More Related Content

PPTX
Applets in java
PPTX
PPTX
Java swing
PPTX
Object Oriented Programming Using C++
PPTX
Overloading and overriding in vb.net
PPTX
Basic behavioral modeling chapter 3 of OMD
PDF
Java data types, variables and jvm
PPTX
Java awt (abstract window toolkit)
Applets in java
Java swing
Object Oriented Programming Using C++
Overloading and overriding in vb.net
Basic behavioral modeling chapter 3 of OMD
Java data types, variables and jvm
Java awt (abstract window toolkit)

What's hot (20)

PPT
Object and class relationships
PPTX
PPTX
Type casting in java
PPTX
Operators in java
PPT
Visual Basic menu
PDF
Java I/o streams
PPTX
Php string function
PPTX
Introduction to Object Oriented Programming
PPTX
Python Functions
PPTX
Data types
PPTX
Common language runtime clr
PDF
UI controls in Android
DOCX
Common dialog control
PPTX
Compare between pop and oop
PDF
PPTX
Important features of java
PPTX
Advance Java Programming (CM5I)5.Interacting with-database
PPTX
Interface in java
PPTX
Life cycle of a computer program
PDF
Visual Basic 6.0
Object and class relationships
Type casting in java
Operators in java
Visual Basic menu
Java I/o streams
Php string function
Introduction to Object Oriented Programming
Python Functions
Data types
Common language runtime clr
UI controls in Android
Common dialog control
Compare between pop and oop
Important features of java
Advance Java Programming (CM5I)5.Interacting with-database
Interface in java
Life cycle of a computer program
Visual Basic 6.0
Ad

Viewers also liked (20)

PPTX
Looping statement in vb.net
PPTX
Operators , Functions and Options in VB.NET
PPTX
Visual Basic Controls ppt
KEY
.NET Variables and Data Types
PPT
Working in Visual Studio.Net
ODP
Intro to Linux 101 ver 1.1
PDF
リナックスミント17.2 の紹介とOpenSuSE MATEのインストール手順
ODP
Linux distro and its features by adam
PPT
Visual Studio.NET
PPTX
Perintah perintah dasar linux Operating Sistem
PPTX
So struktur dan perintah dasar
PPTX
pengenalan sistem operasi linux
PPT
Corporate identity mix with assignment v2
PPT
BITS: Introduction to linux, distributions and installation
PPTX
Sistem operasi sistem file linux
PPTX
Part 8 add,update,delete records using records operation buttons in vb.net
PPS
Vb.net session 15
PDF
Part 1 picturebox using vb.net
PPT
Introduction to XML
PDF
Part2 database connection service based using vb.net
Looping statement in vb.net
Operators , Functions and Options in VB.NET
Visual Basic Controls ppt
.NET Variables and Data Types
Working in Visual Studio.Net
Intro to Linux 101 ver 1.1
リナックスミント17.2 の紹介とOpenSuSE MATEのインストール手順
Linux distro and its features by adam
Visual Studio.NET
Perintah perintah dasar linux Operating Sistem
So struktur dan perintah dasar
pengenalan sistem operasi linux
Corporate identity mix with assignment v2
BITS: Introduction to linux, distributions and installation
Sistem operasi sistem file linux
Part 8 add,update,delete records using records operation buttons in vb.net
Vb.net session 15
Part 1 picturebox using vb.net
Introduction to XML
Part2 database connection service based using vb.net
Ad

Similar to VB.Net GUI Unit_01 (20)

PPTX
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
PPTX
Introduction.pptx the event driven course
PDF
tybsc it asp.net full unit 1,2,3,4,5,6 notes
PPS
dot NET Framework
PPS
01 gui 01
PDF
Dot net-interview-questions-and-answers part i
PPTX
Dot net-interview-questions-and-answers part i
PPT
Introduction to ,NET Framework
PDF
Dot net interview_questions
PDF
Unit -II Introduction to visual programming.pdf
PPTX
Dotnet Basics Presentation
PPTX
.net Based Component Technologies
PPTX
Introduction to .net
PPTX
Microsoft .Net Technology
PPT
Inside .net framework
PDF
Lecture-1&2.pdf Visual Programming C# .net framework
PPS
Vb net xp_01
PDF
Dot net interview_questions
PDF
Dot net interview_questions
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
Introduction.pptx the event driven course
tybsc it asp.net full unit 1,2,3,4,5,6 notes
dot NET Framework
01 gui 01
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part i
Introduction to ,NET Framework
Dot net interview_questions
Unit -II Introduction to visual programming.pdf
Dotnet Basics Presentation
.net Based Component Technologies
Introduction to .net
Microsoft .Net Technology
Inside .net framework
Lecture-1&2.pdf Visual Programming C# .net framework
Vb net xp_01
Dot net interview_questions
Dot net interview_questions

More from Prashanth Shivakumar (11)

PPS
PPS
WPF (Windows Presentation Foundation Unit 01)
PPS
WCF (Windows Communication Foundation_Unit_01)
PPS
PPS
Web Component Development with Servlet and JSP Technologies Unit 01
PPT
RDBMS_Unit 01
PPS
J2ME Unit_01
PPS
Data Structures and Algorithms Unit 01
PPS
PPS
Advanced excel unit 01
PPS
C programming unit 01
WPF (Windows Presentation Foundation Unit 01)
WCF (Windows Communication Foundation_Unit_01)
Web Component Development with Servlet and JSP Technologies Unit 01
RDBMS_Unit 01
J2ME Unit_01
Data Structures and Algorithms Unit 01
Advanced excel unit 01
C programming unit 01

Recently uploaded (20)

PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Encapsulation theory and applications.pdf
PDF
KodekX | Application Modernization Development
PDF
Modernizing your data center with Dell and AMD
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Approach and Philosophy of On baking technology
PPTX
Big Data Technologies - Introduction.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation theory and applications.pdf
KodekX | Application Modernization Development
Modernizing your data center with Dell and AMD
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
The AUB Centre for AI in Media Proposal.docx
Reach Out and Touch Someone: Haptics and Empathic Computing
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Approach and Philosophy of On baking technology
Big Data Technologies - Introduction.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Per capita expenditure prediction using model stacking based on satellite ima...

VB.Net GUI Unit_01

  • 1. In this session, you will learn to: Appreciate the Graphical User Interface (GUI) Identify the controls of GUI Objectives
  • 2. Appreciate the Graphical User Interface What is a user interface?
  • 3. Appreciate the Graphical User Interface (Contd.) An interface is a layer between a user and an application. It helps the user to interact with the application.
  • 4. The two types of user interface are: Character User Interface (CUI) Graphical User Interface (GUI) Appreciate the Graphical User Interface (Contd.) Enter your name: John Enter a book name: Famous Five Sorry, The book is not available. Do you want to check for another book (y/n): In CUI, the user interacts with an application by typing commands. The following figure shows the sample output of a CUI application. A GUI provides a picture-oriented or graphical way of interacting with an application. The following figure shows a sample output of a GUI application.
  • 5. Advantages of GUI applications are: They are easy to learn and use. The users need not remember the lines of syntax. Most of the commands are executed by using mouse. Appreciate the Graphical User Interface (Contd.)
  • 6. A GUI application interacts with the users through various components, called controls. The following figure shows a GUI screen containing various controls. Identifying the Controls of GUI Label Text Box Button Combo Box
  • 7. Just a minute A ____________ is a control that consists of other controls. Answer: Container
  • 8. Windows provides the following types of dialog boxes: Modal System modal Modeless Identifying the Controls of GUI (Contd.)
  • 9. Modal: It does not allow the user to switch focus to another area of the application, which has invoked the dialog box. It allows the user to switch to other Windows applications. The Save As dialog box of Microsoft Word is an example of modal dialog box. Identifying the Controls of GUI (Contd.)
  • 10. The following figure shows the Save As dialog box. Identifying the Controls of GUI (Contd.)
  • 11. System modal: It takes control of the entire Windows environment. It does not allow the user to switch to any other Windows application until it is closed. The Log On to Windows dialog box is an example of system modal dialog box. Identifying the Controls of GUI (Contd.)
  • 12. The following figure shows the Log On to Windows dialog box. Identifying the Controls of GUI (Contd.)
  • 13. Modeless: It allows the users to switch to another area of the application or to another Windows application. It remains on the screen and is available for use at any time. The Find and Replace dialog box of Microsoft Word is an example of modeless dialog box. Identifying the Controls of GUI (Contd.)
  • 14. The following figure shows the Find and Replace dialog box. Identifying the Controls of GUI (Contd.)
  • 15. Just a minute Which dialog box allows users to switch to another area of the application, which has invoked it? Answer: Modeless dialog box
  • 16. Just a minute A __________ acts as a container for a group of related controls. Answer: Dialog box
  • 17. Identifying the Features of the Windows Environment The features of the Windows environment that enable applications to interact effectively with the user are: Event-driven programming Dynamic linking
  • 18. Identifying the Features of the Windows Environment (Contd.) Event-driven programming: Windows application can execute programs on a click of a mouse. An event is an action performed by the user. Windows applications generate messages in response to each action performed by the user. Depending on the messages received, the application performs preprogrammed functions. Based on user’s input, an event gets generated. The code corresponding to the event is executed.
  • 19. Identifying the Features of the Windows Environment (Contd.) Dynamic linking: The process by which an application is linked to the library functions at run time. The reference to the function is looked up at run time. This is called dynamic linking.
  • 20. In this session, you learned that: GUI enables the users to interact with the application by using graphical components. Windows provides three types of dialog boxes: Modal dialog box System modal dialog box Modeless dialog box The main features of the Windows environment are: Event-driven programming Dynamic linking Summary
  • 21. In this session, you will learn to: Identify the features of .NET Framework Objectives
  • 22. Identifying the Features of .NET Framework What is .NET Framework?
  • 23. Identifying the Features of .NET Framework (Contd.) .NET Framework is an integrated technology that helps in creating and running robust, scalable, and distributed applications.
  • 24. Microsoft introduced the .NET Framework to enhance the interoperability of applications. The .NET Framework is designed to make improvements in: Code reuse Code specialization Resource management Multilanguage development Security Deployment Administration Identifying the Features of .NET Framework (Contd.)
  • 25. .NET Framework offers a complete suite for developing and deploying applications. The suit consists of: .NET Products .NET Services .NET Framework Identifying the Features of .NET Framework (Contd.)
  • 26. The following figure shows the different components of the .NET Framework. Components of the .NET Framework CLR is the environment in which all programs that use .NET technologies are executed. The CLR allows the execution of code across different platforms by translating code into Intermediate Language (IL). At the presentation layer, .NET provides three types of user interfaces. They are Windows Forms, Web Forms, and Console Applications. The .NET Framework class library works with any .NET language, such as VB.NET, VC++ .NET, and VC#. The .NET Framework class library comprises namespaces, which are contained within assemblies.
  • 27. Identifying the process of compilation: Compilation is the process of creating an executable program from the source code. It converts source code into machine language. In .NET, the conversion of source code to machine language takes place in two stages: In the first stage, the compiler translates code into an IL instead of machine language or assembly language. In the second stage, the JIT compiler converts IL into machine language at run time. Components of the .NET Framework (Contd.)
  • 28. The following figure shows the process of code compilation. Components of the .NET Framework (Contd.) Program Code Compiler IL Metadata Assembly + Machine Code JIT Compiler
  • 29. Identifying the process of code execution: During execution, CLR performs the following steps: Loading assemblies and identifying namespaces JIT compilation Garbage collection Components of the .NET Framework (Contd.)
  • 30. The following figure shows the process of code compilation. Components of the .NET Framework (Contd.) SetTopScore() IgnoreScore() SetTopScore() Visual C# Code IL Code IgnoreScore()
  • 31. The following figure shows the process of code execution. Components of the .NET Framework (Contd.) JIT SetTopScore() IgnoreScore() SetTopScore() Machine LanguageIL Code is invoked SetTopScore()
  • 32. The following advantages are offered by the .NET Framework: Consistent programming model: The .NET Framework provides a common object-oriented programming model across languages. Multi-platform applications: A .NET application can be executed on any platform and architecture supported by CLR. Multi-language integration: .The NET Framework allows integration of multiple languages. You can create a VC# class deriving from a VB.NET class. Automatic resource management: The CLR tracks resource usage and relieves a programmer from the task of manual resource management. Ease of deployment: .NET applications can be deployed simply by copying files to the target computer. Components of the .NET Framework (Contd.)
  • 33. In this session, you learned that: .NET Framework is made up of many components, such as CLS, CLR, and JIT compiler. The CLR is the environment where all .NET applications are executed. CLS is a set of rules that are followed by all the languages of the .NET Framework. When a program is compiled by using Visual Studio, the compiler translates the code into IL instead of machine language. The JIT compiler is used to translate the code from IL into machine language. Summary
  • 34. In this session, you will learn to: Use Windows project by using Visual Studio .NET integrated development environment Objectives
  • 35. The Visual Studio .NET IDE provides you with a common interface for developing various kinds of applications. The IDE also provides you with a centralized location for: Designing the user interface for an application. Writing code for the application. Compiling the application. Debugging the application. Using Visual Studio .NET IDE
  • 36. In Visual Studio .NET, an application can be made up of one or more items, such as files and folders. To organize these items efficiently, Visual Studio .NET provides two types of containers: Projects Solutions Creating Projects and Solutions
  • 37. Project: It contains interrelated items that make up the application. It allows you to manage, build, and debug the items. An executable file (.exe) or a Dynamic Link Library (.dll) is created when you build a project. These files are called the project output. Solution: It acts as a container for one or more projects. It allows you to work on multiple projects within the same instance of the Visual Studio .NET IDE. Creating Projects and Solutions (Contd.)
  • 38. The following figure shows a solution containing multiple projects. Creating Projects and Solutions (Contd.) Solution Project 1 Project 2 Miscellaneous Files Project 1 Items Project 2 Items
  • 39. Creating Projects and Solutions (Contd.) Let us see how to create a Windows application in Visual Studio .NET IDE.
  • 40. The following table describes various templates available in the Templates pane. Creating Projects and Solutions (Contd.) Template Description Windows Application It creates Windows-based application. Class Library It creates a class or a reusable component (.dll or .exe) that exposes some functionality to be used in various projects. Windows Control Library It creates a custom control that can be added to the user interface. Console Application It creates a CUI-based application that can run from the command prompt. Device Application It creates a .NET Compact Framework 2.0 forms application for Pocket PC 2003 and later. Crystal Reports Application It adds a Windows user interface and a sample crystal report in the .NET application.
  • 41. Just a minute Which template creates a .NET Compact Framework 2.0 forms application for Pocket PC 2003 and later? 1. Windows Control Library 2. Class Library 3. Device Application 4. Web Control Library Answer: 3. Device Application
  • 42. Creating Projects and Solutions (Contd.) Let us see various user interface elements of Visual Studio .NET IDE.
  • 43. The following figure shows various interface elements of Visual Studio .NET IDE. Creating Projects and Solutions (Contd.) Solution Explorer Window Windows Form Designer Toolbox Window Properties Window Output Window Menu Bar
  • 44. The following table describes various windows of Visual Studio .NET IDE. Creating Projects and Solutions (Contd.) Window Name Description Output Window It displays messages regarding the status of various features provided in the Visual Studio. You can open it by selecting ViewOutput. Alternatively, you can use the key combination Ctrl+W, O. Server Explorer Window It is a tool used for various administrative tasks, such as monitoring the performance of other machines on a network, and locating and connecting to the various servers on the network. You can open it by selecting ViewServer Explorer. Alternatively, you can use the key combination CTRL+W, L. Class View Window It displays the classes, methods, and properties associated with a particular file. You can open it by selecting ViewClass View. Alternatively, you can use the key combination Ctrl+W, C. Dynamic Help Window It provides you with context-sensitive help. You can open the dynamic help window by selecting HelpDynamic Help. Alternatively, you can use the key combination CTRL+F1, D.
  • 45. Just a minute Which window displays messages for the status of various features provided in the Visual Studio .NET IDE? Answer: The Output Window
  • 46. Just a minute Which window allows to view the resources of the servers, such as services, processes, and the event log? Answer: The Server Explorer window
  • 47. Navigational Features in Visual Studio .NET IDE The three navigational features provided by Visual Studio .NET IDE are: Docking: Allows you to place a window against any of the edges of the parent window. Tabbed: Allows overlapping of various open windows and navigating between them by using tabs. Auto Hide: Automatically hides a window when it is not in use.
  • 48. Navigational Features in Visual Studio .NET IDE (Contd.) Let us see how to use various navigational features provided by the Visual Studio .NET IDE.
  • 49. Compiling and Executing a Project Let us see how to compile and execute an application.
  • 50. In this session, you learned that: The Visual Studio 2005 IDE provides you with a common interface for developing various kinds of applications on the .NET Framework. Some of the components of the Visual Studio .NET IDE are: The Windows Forms Designer The Solution Explorer window The Properties window The Toolbox window The Output window The Code and Text Editor window Summary
  • 51. The Visual Studio .NET IDE also provides three navigational features. These are: Docking Tabbed Auto hide Summary (Contd.)
  • 52. Let me give you some questions to solve at home. Home Assignment

Editor's Notes

  • #2: Start the session by sharing the session objectives with the students.
  • #5: Start the session by discussing the features of CUI based application. Ask the students to list down the possible disadvantages of CUI applications. Collate the answers given by the students and list down the following points: The user needs to enter the data. The user needs to remember the commands. Lengthy code has to be written for simple tasks. The display area is restricted to 25 rows and 80 columns. Now take the discussion towards the GUI . Discuss the advantages of GUI as being WYSIWYG (What you see is what you get). Discuss with the students that there are several controls available in GUI that can be used to take input from the user. This input can be validated easily.
  • #6: Discuss the advantages of GUI applications listed here.
  • #7: Some of controls that appear in the dialog box are explained in the following list. Label: Displays text that users cannot directly edit. TextBox: Accepts input from the user. Combo Box: Displays items in a drop-down list. It is a combination of a text box in which a user types something, and a drop-down list from which the user selects an item. Button: Provides options such as OK, Cancel etc. Discuss with the students that there are 2 types of components, visual and non-visual components. Visual components are the ones which the users can see. They are also called as controls.
  • #8: Reiterate the concepts taught earlier by asking the given question.
  • #9: Discuss all the three types of dialog boxes with the students with appropriate examples. Example of: Modal: Save As Dialog Box, that does not allow to move the control else where unless the user selects some option or closes the dialog box System Modal : Windows Log On Dialog Box, that takes control of the entire Windows Environment. Modeless: Find and Replace Dialog Box, that stays on screen and is available for use at any time.
  • #10: Discuss all the three types of dialog boxes with the students with appropriate examples. Example of: Modal: Save As Dialog Box, that does not allow to move the control else where unless the user selects some option or closes the dialog box System Modal : Windows Log On Dialog Box, that takes control of the entire Windows Environment. Modeless: Find and Replace Dialog Box, that stays on screen and is available for use at any time.
  • #11: Discuss all the three types of dialog boxes with the students with appropriate examples. Example of: Modal: Save As Dialog Box, that does not allow to move the control else where unless the user selects some option or closes the dialog box System Modal : Windows Log On Dialog Box, that takes control of the entire Windows Environment. Modeless: Find and Replace Dialog Box, that stays on screen and is available for use at any time.
  • #12: Discuss all the three types of dialog boxes with the students with appropriate examples. Example of: Modal: Save As Dialog Box, that does not allow to move the control else where unless the user selects some option or closes the dialog box System Modal : Windows Log On Dialog Box, that takes control of the entire Windows Environment. Modeless: Find and Replace Dialog Box, that stays on screen and is available for use at any time.
  • #13: Discuss all the three types of dialog boxes with the students with appropriate examples. Example of: Modal: Save As Dialog Box, that does not allow to move the control else where unless the user selects some option or closes the dialog box System Modal : Windows Log On Dialog Box, that takes control of the entire Windows Environment. Modeless: Find and Replace Dialog Box, that stays on screen and is available for use at any time.
  • #14: Discuss all the three types of dialog boxes with the students with appropriate examples. Example of: Modal: Save As Dialog Box, that does not allow to move the control else where unless the user selects some option or closes the dialog box System Modal : Windows Log On Dialog Box, that takes control of the entire Windows Environment. Modeless: Find and Replace Dialog Box, that stays on screen and is available for use at any time.
  • #15: Discuss all the three types of dialog boxes with the students with appropriate examples. Example of: Modal: Save As Dialog Box, that does not allow to move the control else where unless the user selects some option or closes the dialog box System Modal : Windows Log On Dialog Box, that takes control of the entire Windows Environment. Modeless: Find and Replace Dialog Box, that stays on screen and is available for use at any time.
  • #16: Reiterate the concepts taught earlier by asking the given question.
  • #17: Reiterate the concepts taught earlier by asking the given question.
  • #18: Using this slide, discuss with the students that all windows based applications accept the input and process the input on the basis of an event. Take a simple example of adding two numbers. For this application, the user enters two numbers in the text boxes. Only when he clicks on the button, will he be able to see the results of addition. Here, clicking of a button is an example of an event being generated. Now proceed the discussion towards another example of Student’s Data Entry form. After entering all the values in the required fields, the user needs to ensure the data is transferred into the database. The code to transfer the database will be written on the click event of the button. Therefore, after entering the data, the user needs to click on the button to transfer the data to the database. In addition, also discuss with the students that Windows Applications allow to link the application to the existing library function. For example, there is a library function to connect to the desired database where the user needs to just specify the name and location of database. Therefore, instead of writing the code again and again, the user can use the in-built function and connect to the database quickly.
  • #19: Using this slide, discuss with the students that all windows based applications accept the input and process the input on the basis of an event. Take a simple example of adding two numbers. For this application, the user enters two numbers in the text boxes. Only when he clicks on the button, will he be able to see the results of addition. Here, clicking of a button is an example of an event being generated. Now proceed the discussion towards another example of Student’s Data Entry form. After entering all the values in the required fields, the user needs to ensure the data is transferred into the database. The code to transfer the database will be written on the click event of the button. Therefore, after entering the data, the user needs to click on the button to transfer the data to the database. In addition, also discuss with the students that Windows Applications allow to link the application to the existing library function. For example, there is a library function to connect to the desired database where the user needs to just specify the name and location of database. Therefore, instead of writing the code again and again, the user can use the in-built function and connect to the database quickly.
  • #20: Using this slide, discuss with the students that all windows based applications accept the input and process the input on the basis of an event. Take a simple example of adding two numbers. For this application, the user enters two numbers in the text boxes. Only when he clicks on the button, will he be able to see the results of addition. Here, clicking of a button is an example of an event being generated. Now proceed the discussion towards another example of Student’s Data Entry form. After entering all the values in the required fields, the user needs to ensure the data is transferred into the database. The code to transfer the database will be written on the click event of the button. Therefore, after entering the data, the user needs to click on the button to transfer the data to the database. In addition, also discuss with the students that Windows Applications allow to link the application to the existing library function. For example, there is a library function to connect to the desired database where the user needs to just specify the name and location of database. Therefore, instead of writing the code again and again, the user can use the in-built function and connect to the database quickly.
  • #21: You can summarize the session by using the summary given in the slides. In addition, you can also ask students summarize what they have learnt in this session.
  • #22: Start the session by sharing the session objectives with the students.
  • #25: Start the session by sharing the session objectives with the students.
  • #26: Start the session by sharing the session objectives with the students.
  • #27: Using this slide, discuss with the students that .NET Framework consists of 3 different components. Discuss each of the components one by one. Try to give an example of the components.
  • #28: Start the session by sharing the session objectives with the students.
  • #29: Start the session by sharing the session objectives with the students.
  • #30: Start the session by sharing the session objectives with the students.
  • #31: Start the session by sharing the session objectives with the students.
  • #32: Start the session by sharing the session objectives with the students.
  • #33: Using this slide discuss the advantages of .NET framework
  • #34: You can summarize the session by using the summary given in the slides. In addition, you can also ask students summarize what they have learnt in this session.
  • #35: Start the session by sharing the session objectives with the students.
  • #36: Using this slide discuss the .NET IDE with the students. An effective way of explaining the IDE to the students will be to open the .NET windows application project and discuss each of the components including: Windows Form Designer Code Window Toolbox Properties Window Solution Explorer Window Error-view Window Output Window And the menu and toolbars available within the IDE. The faculty should also discuss the following templates in .NET: Windows Application Class Library Windows Control Library Console Application Device Application Crystal Reports Application
  • #37: Using this slide discuss the .NET IDE with the students. An effective way of explaining the IDE to the students will be to open the .NET windows application project and discuss each of the components including: Windows Form Designer Code Window Toolbox Properties Window Solution Explorer Window Error-view Window Output Window And the menu and toolbars available within the IDE. The faculty should also discuss the following templates in .NET: Windows Application Class Library Windows Control Library Console Application Device Application Crystal Reports Application
  • #38: Using this slide discuss the .NET IDE with the students. An effective way of explaining the IDE to the students will be to open the .NET windows application project and discuss each of the components including: Windows Form Designer Code Window Toolbox Properties Window Solution Explorer Window Error-view Window Output Window And the menu and toolbars available within the IDE. The faculty should also discuss the following templates in .NET: Windows Application Class Library Windows Control Library Console Application Device Application Crystal Reports Application
  • #39: Using this slide discuss the .NET IDE with the students. An effective way of explaining the IDE to the students will be to open the .NET windows application project and discuss each of the components including: Windows Form Designer Code Window Toolbox Properties Window Solution Explorer Window Error-view Window Output Window And the menu and toolbars available within the IDE. The faculty should also discuss the following templates in .NET: Windows Application Class Library Windows Control Library Console Application Device Application Crystal Reports Application
  • #41: Using this slide, explain the values of the MdiLayout method for arranging child forms in several ways.
  • #42: Reiterate the concepts taught earlier by asking the given question.
  • #44: Using this slide discuss the .NET IDE with the students. An effective way of explaining the IDE to the students will be to open the .NET windows application project and discuss each of the components including: Windows Form Designer Code Window Toolbox Properties Window Solution Explorer Window Error-view Window Output Window And the menu and toolbars available within the IDE. The faculty should also discuss the following templates in .NET: Windows Application Class Library Windows Control Library Console Application Device Application Crystal Reports Application
  • #45: Using this slide, explain the values of the MdiLayout method for arranging child forms in several ways.
  • #46: Reiterate the concepts taught earlier by asking the given question.
  • #47: Reiterate the concepts taught earlier by asking the given question.
  • #48: While discussing the IDE, the faculty must also explain that .NET also provides three navigational features with almost all the windows. Demonstrate each of them for a better understanding of the features.
  • #51: You can summarize the session by using the summary given in the slides. In addition, you can also ask students summarize what they have learnt in this session.