Sie sind auf Seite 1von 24

Slide 1 of 24 Session 1 Ver. 1.

0
GUI Applications Development Using .NET
Framework
A user interface is the means by which a user interacts with
an application.
User interaction in a windows-based application is
accomplished through Windows Forms and controls.
The purpose of GUI Applications Deelopment Using .!"T
Framewor# is to proide the student with a hands-on
enironment in which they will learn the core s#ills of
$icrosoft Windows Forms application deelopment.
Rationale
Slide 2 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
In this session% you will learn to&
Appreciate the graphical user interface
Identify the controls of graphical user interface
Identify the features of .!"T Framewor#
Use 'isual (tudio .!"T integrated deelopment enironment
to create and e)ecute Windows pro*ects
Objectives
Slide 3 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
The two ways of interacting with an application are&
+y using ,haracter User Interface -,UI.
+y using Graphical User Interface -GUI.
Intro!cing t"e GUI Environment
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 ,UI% the user interacts with a system by #eying in
commands.
The following figure shows the sample output of a
,UI application.
A GUI proides a picture-oriented or graphical
way of interacting with the system.
The following figure shows a sample output of a GUI
application.
Slide 4 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
Adantages of GUI applications are&
They are easy to learn and use.
Users need not remember the lines of synta).
$ost of the commands can be e)ecuted using the mouse.
Intro!cing t"e GUI Environment #$ont.%
Slide 5 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
A typical application screen contains components such as
buttons and te)t bo)es.
These components enable you to enter information and
customi/e other parameters. These components are called
controls.
The following figure shows a GUI application with arious
controls such as label% button% te)tbo)% and combo bo).
Ienti&'ing $ontrols o& GUI Inter&ace
!abel
"ontrols
Te#t$o#
"ontrol
"ombo$o#
"ontrol
$utton
"ontrol
Slide 6 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
(!st a min!te
A 000000000000 is a control that consists of other controls.
Answer&
,ontainer
Slide 7 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
Windows proides the following types of dialog bo)es&
$odal
(ystem modal
$odeless
Ienti&'ing $ontrols o& GUI Inter&ace #$ont.%
Slide 8 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
(!st a min!te
Which dialog bo) allows users to switch to another area of
the application1
Answer&
$odeless Dialog +o)
Slide 9 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
(!st a min!te
A 0000000000 acts as a container for a group of related
controls.
Answer&
Dialog bo)
Slide 10 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
Ienti&'ing t"e Feat!res o& t"e )inows Environment
Two of the most important features of the Windows
enironment that enable applications to interact effectiely
with the user are&
"ent-Drien 2rogramming&
+ased on user3s input% an eent gets generated and the
corresponding code is e)ecuted.
Dynamic 4in#ing&
Windows application is lin#ed to the e)isting library functions at
run time.
Slide 11 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
The .!"T offers a complete suite for deeloping and
deploying applications.
This suite consists of the&
.!"T 2roducts
.!"T (erices
.!"T Framewor#
T"e .NET Framework
$icrosoft has introduced 'isual
(tudio .!"T% which is a tool for
deeloping .!"T applications by
using programming languages
such as 'isual +asic% 'isual ,5%
and 'isual ,66.
These products aim at allowing
deelopers to create numerous
applications.
Slide 12 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
The .!"T offers a complete suite for deeloping and
deploying applications.
This suite consists of the&
.!"T 2roducts
.!"T (erices
.!"T Framewor#
T"e .NET Framework #$ont.%
$icrosoft has come up with its own
set of Web serices% #nown as $y
(erices. These serices are
based on the $icrosoft 2assport
Authentication serice% which is
used in Web applications such
as 7otmail.
This serice allows users to access
data by lin#ing calendars%
phoneboo#s% address boo#s% and
personal references to the passport
authentication serice.
Slide 13 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
The .!"T offers a complete suite for deeloping and
deploying applications.
This suite consists of the&
.!"T 2roducts
.!"T (erices
.!"T Framewor#
T"e .NET Framework #$ont.%
It is the foundation on which you
design% deelop% and deploy
applications.
It is a consistent and simplified
programming model that helps you
to easily build robust applications.
Slide 14 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
The following figure shows the different components of
the .!"T Framewor#.
$omponents o& t"e .NET Framework
,48 is the
enironment where all
programs using
.!"T technologies are
e)ecuted.
The ,48 allows the
e)ecution of code
across different
platforms by
translating code into
Intermediate
4anguage -I4..
I4 is a low-leel
language that the
,48 understands.
At the presentation
layer% .!"T
proides three types
of user interfaces.
They are
Windows Forms%
Web Forms% and
,onsole Applications.
The .!"T
Framewor#
class library wor#s
with any .!"T
language% such as
'+.!"T% ',66
.!"T% and ',5.
The .!"T
Framewor# class
library comprises
namespaces% which
are contained within
assemblies.
Slide 15 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
(ome of the adantages offered by the .!"T Framewor#
are&
,onsistent programming model
$ulti-platform applications
$ulti-language integration
Automatic resource management
"ase of deployment
$omponents o& t"e .NET Framework #$ont.%
Slide 16 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
The 'isual (tudio .!"T ID" proides you with a common
interface for deeloping arious #inds of applications.
The ID" also proides you with a centrali/ed location for
designing the user interface for an application% writing code%
and compiling and debugging the application.
4et us see the arious components of .!"T ID".
Using *is!al +t!io .NET IDE
Slide 17 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
(!st a min!te
Which template creates a .!"T ,ompact Framewor# 9.:
forms application for 2oc#et 2, 9::; and later1
<. Windows ,ontrol 4ibrary
9. ,lass 4ibrary
;. Deice Application
=. Web ,ontrol 4ibrary
Answer&
;. Deice Application
Slide 18 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
(!st a min!te
Which window displays messages for the status of arious
features proided in the 'isual (tudio .!"T ID"1
Answer&
The >utput Window
Slide 19 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
(!st a min!te
Which window allows to iew the resources of the serers%
such as serices% processes% and the eent log.
Answer&
The (erer ")plorer window
Slide 20 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
Navigational Feat!res in *is!al +t!io .Net IDE
In addition to arious windows% the 'isual (tudio .!"T ID"
also proides three naigational features.
These are&
Doc#ing
Tabbed !aigation
Auto 7ide
4et us see these naigational features in the 'isual
(tudio .!"T ID".
Slide 21 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
$reating ,rojects an +ol!tions
In 'isual (tudio .!"T% an application can be made up of
seeral files and folders.
To organi/e these files and folders efficiently% 'isual
(tudio .!"T has proided two types of containers&
2ro*ects
(olutions
4et3s see how to create pro*ects and solutions.
Slide 22 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
$ompiling an E-ec!ting a ,roject
To compile and e)ecute the application% you need to
perform the following steps&
<. (elect +uild+uild (olution or press F? to compile the
application.
9. (elect Debug(tart Debugging or press F@ to e)ecute the
application.
Slide 23 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
In this session% you learned that&
Windows proides a GUI% which enables a user to interact with
the application by using graphical components.
Windows proides three types of dialog bo)es&
$odal Dialog +o)
(ystem $odal Dialog +o)
$odeless Dialog +o)
The .!"T Framewor# consists of three main components&
,ommon 4anguage 8untime -,48.
The .!"T Framewor# ,lass 4ibrary
User and 2rogram Interfaces
+!mmar'
Slide 24 of 24 Session 1 Ver. 1.0
GUI Applications Development Using .NET
Framework
The 'isual (tudio .!"T ID" proides you with a common
interface for deeloping arious #inds of pro*ects for the .!"T
Framewor#.
In 'isual (tudio .!"T% an application can be made up of one or
more items% such as files and folders.
To organi/e these items efficiently% 'isual (tudio .!"T has
proided two types of containers% pro*ects and solutions.
In addition to arious windows% the 'isual (tudio .!"T ID" also
proides three naigational features. These are&
Doc#ing
Tabbed !aigation
Auto 7ide
+!mmar' #$ont.%

Das könnte Ihnen auch gefallen