SlideShare a Scribd company logo
1 of 24
GUI Applications Development Using .NET Framework
Objectives


                In this session, you will learn to:
                   Create a Help System using HTML Workshop
                   Implement Help System in .NET applications
                   Work with built-in components in the .NET applications
                   Work with user-defined components in the .NET applications




     Ver. 1.0                        Session 10                        Slide 1 of 24
GUI Applications Development Using .NET Framework
Help Files


                A help system within an application assists the user while
                using the application.
                A help system comprises of several help files and
                components that are created using HTML Help Workshop.
                HTML Help Workshop (hhw.exe) is a help-authoring tool
                provided by Microsoft for creating help systems.
                Some files that make up a help system are:
                   HTML files
                   Graphics and Multimedia files
                   Help Project files
                   Contents files
                   Index files




     Ver. 1.0                       Session 10                      Slide 2 of 24
GUI Applications Development Using .NET Framework
Help Files (Contd.)


                The HTML Help Workshop allows to create a help system
                with standard features of any help system. The features are:
                    Table of contents
                    Index                           Provides users with a
                                                 Helps users to quickly
                                                   hierarchical view of
                                                 search for information
                                                     the various help
                                                      they need.
                                                          topics.




     Ver. 1.0                      Session 10                         Slide 3 of 24
GUI Applications Development Using .NET Framework
Just a minute


                What is the extension of a compiled help project file?




                Answer:
                   .chm


     Ver. 1.0                      Session 10                            Slide 4 of 24
GUI Applications Development Using .NET Framework
Demo: Building a Help System


                Problem Statement:
                   You have created an application for a retail store. The
                   application maintains the records of its customers. Before
                   making the final delivery of the application, you want to
                   implement the help system in the application. You need to
                   create the help system using the HTML Help Workshop.




     Ver. 1.0                       Session 10                            Slide 5 of 24
GUI Applications Development Using .NET Framework
Demo: Building a Help System (Contd.)


                Solution:
                   To build Help system using the HTML Help Workshop, you
                   need to perform the following tasks:
                     1.   Create a project file.
                     2.   Create the HTML topic pages.
                     3.   Create an index.
                     4.   Create a table of contents.
                     5.   Compile and verify the project file.




     Ver. 1.0                            Session 10                  Slide 6 of 24
GUI Applications Development Using .NET Framework
Providing Context-Sensitive Help


                Context-sensitive help assists users by providing help
                based on a specific dialog box or a control in a program.
                To add context-sensitivity to the application, the various
                controls in the form need to be linked with the Help file.
                To add context-sensitive help to a control, you need to set
                the following properties for controls:
                   ShowHelp on <HelpProvider control> to True.
                   HelpKeyword on <HelpProvider control> to an appropriate
                   keyword for retrieving help.
                   HelpNavigator property to the required value.




     Ver. 1.0                      Session 10                          Slide 7 of 24
GUI Applications Development Using .NET Framework
Providing Context-Sensitive Help (Contd.)


                To implement context-sensitive help, you need to perform
                the following tasks:
                1. Link your application with a help file.
                2. Add context-sensitive help to various form elements.




     Ver. 1.0                       Session 10                            Slide 8 of 24
GUI Applications Development Using .NET Framework
Just a minute


                Which property value of the HelpNavigator property will
                display the index for a specified topic?
                 1.   Index
                 2.   AssociateIndex
                 3.   KeywordIndex
                 4.   Topic




                Answer:
                2. AssociateIndex


     Ver. 1.0                          Session 10                   Slide 9 of 24
GUI Applications Development Using .NET Framework
Working with Pop-up Help


                Pop-up help is most effective in modal dialog boxes.
                To display Help button on the title bar of a form, you need to
                perform the following steps:
                   Set the MinimizeBox and MaximizeBox properties of the form
                   to False.
                   Set the HelpButton property of the form to True.
                   Add a HelpProvider control to the form.




     Ver. 1.0                      Session 10                         Slide 10 of 24
GUI Applications Development Using .NET Framework
Working with ToolTip Control


                A tool tip is a brief message for individual controls on a
                form.
                The message can be displayed by using the ToolTip control
                present in the Toolbox.
                Two of the important properties of the ToolTip control are:
                   Active                           Is used to set the current
                                                 status of the ToolTip control.
                   AutomaticDelay
                                                   The property can be set to
                                                     either True or False. By
                                                 default, the Active property is
                                                            set to True.
                                                      Is used to set time in
                                                  milliseconds after which the
                                                    tool tip would appear. By
                                                  default, the AutomaticDelay
                                                      property is set to 500.


     Ver. 1.0                       Session 10                              Slide 11 of 24
GUI Applications Development Using .NET Framework
Working with ToolTip Control (Contd.)


                There are three properties of the ToolTip control that have
                values based on the value of the AutomaticDelay property.
                These properties are:
                   AutoPopDelay
                   InitialDelay
                   ReshowDelay




     Ver. 1.0                      Session 10                        Slide 12 of 24
GUI Applications Development Using .NET Framework
Working with Built-in Components in the .NET Applications


                A component is a reusable piece of code in binary form,
                which can be used along with other components.




     Ver. 1.0                      Session 10                      Slide 13 of 24
GUI Applications Development Using .NET Framework
Types of Components


               Components can be divided into the following types:
                  Built-in components
                  User-defined components




    Ver. 1.0                     Session 10                          Slide 14 of 24
GUI Applications Development Using .NET Framework
Guidelines for Creating Components


                Some guidelines for creating a component are:
                   The name of a component class should be short and
                   meaningful.
                   You can control the use of a component by using proper
                   access level for constructors.




     Ver. 1.0                      Session 10                          Slide 15 of 24
GUI Applications Development Using .NET Framework
Just a minute


                Name the template, which is used to create a user-defined
                component.




                Answer:
                   Class Library


     Ver. 1.0                      Session 10                      Slide 16 of 24
GUI Applications Development Using .NET Framework
Implementing Built-in Components


                The .NET Framework provides several components besides
                the standard controls that are provided in the Toolbox
                window.
                These controls can be added to the Toolbox window by
                adding reference of the control to the application.




     Ver. 1.0                    Session 10                    Slide 17 of 24
GUI Applications Development Using .NET Framework
Working with User-Defined Components in the .NET Applications


                A .NET component:
                   is a .NET assembly with a .DLL extension
                   is a pre-compiled class module
                .NET components provide an interface that defines:
                   Properties
                   Methods
                   Events
                .NET component can contain more that one class that
                enables to organize the application in a better manner.
                .NET components can be categorized as:
                   In-process components
                   Out-of-process components



     Ver. 1.0                      Session 10                        Slide 18 of 24
GUI Applications Development Using .NET Framework
In-Process Components


               In-process components:
                  are loaded and executed within the process space of the host
                  application.
                  share processor time and memory with their host applications.




    Ver. 1.0                       Session 10                          Slide 19 of 24
GUI Applications Development Using .NET Framework
Out-of-Process Components


               Out-of-process components run as independent processes
               in the operating system.
               Windows creates a new process and loads out-of-process
               components into this process.




    Ver. 1.0                    Session 10                     Slide 20 of 24
GUI Applications Development Using .NET Framework
Out-of-Process Components (Contd.)


                .NET components are further divided into two different
                categories. These are:
                 – Nonvisual components         The .NET components that do not
                 – Visual components            have a user interface are called
                                                nonvisual components.




     Ver. 1.0                      Session 10                                Slide 21 of 24
GUI Applications Development Using .NET Framework
Out-of-Process Components (Contd.)


                .NET components are further divided into two different
                categories. These are:
                 – Nonvisual components
                 – Visual components            The .NET components that have a
                                                user interface associated with them
                                                are called visual components or user
                                                controls.




     Ver. 1.0                      Session 10                                 Slide 22 of 24
GUI Applications Development Using .NET Framework
Summary


               In this session, you learned that:
                  Visual Studio.NET allows the creation of three types of help
                  systems:
                    •   HTML Help
                    •   Pop-up Help
                    •   Tool Tips
                – The HelpProvider control is used to associate a Help file with
                  an application.
                – The Help file to be associated with the HelpProvider control is
                  specified using the HelpNamespace property of the
                  HelpProvider control.
                – The HelpKeyword property of a control is used to set the
                  keyword for retrieving help from the Help file specified in the
                  HelpNamespace property.



    Ver. 1.0                          Session 10                          Slide 23 of 24
GUI Applications Development Using .NET Framework
Summary (Contd.)


               A component is a reusable piece of code in binary form that
               can be used along with the components from other vendors,
               with relatively little effort.
               The types of components are:
                •   Built-in components
                •   User-defined components
               To create a user-defined component, the Class Library
               template under the Templates section in the New Project
               dialog box needs to be selected.
               The .NET Framework provides several components besides
               the standard controls that are provided in the Toolbox window.
               .NET components can be categorized into two types. The
               types are:
                    In-process components
                    Out-of-process components


    Ver. 1.0                     Session 10                          Slide 24 of 24

More Related Content

Similar to 07 gui 10

Visual basic concepts
Visual basic conceptsVisual basic concepts
Visual basic conceptsmelody77776
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0DivyaR219113
 
Net framework session03
Net framework session03Net framework session03
Net framework session03Niit Care
 
My Very First Zf App Part One
My Very First Zf App   Part OneMy Very First Zf App   Part One
My Very First Zf App Part Oneisaaczfoster
 
intro_gui
intro_guiintro_gui
intro_guifilipb2
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginnerSalim M
 
DITAworks Integartion With RCP
DITAworks Integartion With RCPDITAworks Integartion With RCP
DITAworks Integartion With RCPwild_wild_leha
 
An isas presentation on .net framework 2.0 by vikash chandra das
An isas presentation on .net framework 2.0 by vikash chandra dasAn isas presentation on .net framework 2.0 by vikash chandra das
An isas presentation on .net framework 2.0 by vikash chandra dasVikash Chandra Das
 
Top 15 most popular drupal 8 modules
Top 15 most popular drupal 8 modulesTop 15 most popular drupal 8 modules
Top 15 most popular drupal 8 modulesInnoraft
 
The Ring programming language version 1.5.1 book - Part 67 of 180
The Ring programming language version 1.5.1 book - Part 67 of 180The Ring programming language version 1.5.1 book - Part 67 of 180
The Ring programming language version 1.5.1 book - Part 67 of 180Mahmoud Samir Fayed
 
Future Scope in Application Developement of Visual Basic
Future Scope in Application Developement of Visual BasicFuture Scope in Application Developement of Visual Basic
Future Scope in Application Developement of Visual Basicijtsrd
 
Chapter 01: Intro to VB2010 Programming
Chapter 01: Intro to VB2010 ProgrammingChapter 01: Intro to VB2010 Programming
Chapter 01: Intro to VB2010 Programmingpatf719
 

Similar to 07 gui 10 (20)

Visual basic concepts
Visual basic conceptsVisual basic concepts
Visual basic concepts
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
 
Net framework session03
Net framework session03Net framework session03
Net framework session03
 
My Very First Zf App Part One
My Very First Zf App   Part OneMy Very First Zf App   Part One
My Very First Zf App Part One
 
intro_gui
intro_guiintro_gui
intro_gui
 
Ex11 mini project
Ex11 mini projectEx11 mini project
Ex11 mini project
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginner
 
DITAworks Integartion With RCP
DITAworks Integartion With RCPDITAworks Integartion With RCP
DITAworks Integartion With RCP
 
06 gui 08
06 gui 0806 gui 08
06 gui 08
 
04 gui 05
04 gui 0504 gui 05
04 gui 05
 
09 gui 13
09 gui 1309 gui 13
09 gui 13
 
An isas presentation on .net framework 2.0 by vikash chandra das
An isas presentation on .net framework 2.0 by vikash chandra dasAn isas presentation on .net framework 2.0 by vikash chandra das
An isas presentation on .net framework 2.0 by vikash chandra das
 
Top 15 most popular drupal 8 modules
Top 15 most popular drupal 8 modulesTop 15 most popular drupal 8 modules
Top 15 most popular drupal 8 modules
 
Artifacts
ArtifactsArtifacts
Artifacts
 
Ch02 bronson
Ch02 bronsonCh02 bronson
Ch02 bronson
 
The Ring programming language version 1.5.1 book - Part 67 of 180
The Ring programming language version 1.5.1 book - Part 67 of 180The Ring programming language version 1.5.1 book - Part 67 of 180
The Ring programming language version 1.5.1 book - Part 67 of 180
 
Future Scope in Application Developement of Visual Basic
Future Scope in Application Developement of Visual BasicFuture Scope in Application Developement of Visual Basic
Future Scope in Application Developement of Visual Basic
 
Chapter 01: Intro to VB2010 Programming
Chapter 01: Intro to VB2010 ProgrammingChapter 01: Intro to VB2010 Programming
Chapter 01: Intro to VB2010 Programming
 
03 gui 04
03 gui 0403 gui 04
03 gui 04
 
Custom Widgets Tutorial InTouch Machine Edition (ITME)
Custom Widgets Tutorial InTouch Machine Edition (ITME)Custom Widgets Tutorial InTouch Machine Edition (ITME)
Custom Widgets Tutorial InTouch Machine Edition (ITME)
 

More from Niit Care (20)

Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
 

Recently uploaded

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Exploring ChatGPT Prompt Hacks To Maximally Optimise Your Queries
Exploring ChatGPT Prompt Hacks To Maximally Optimise Your QueriesExploring ChatGPT Prompt Hacks To Maximally Optimise Your Queries
Exploring ChatGPT Prompt Hacks To Maximally Optimise Your QueriesSanjay Willie
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 

Recently uploaded (20)

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Exploring ChatGPT Prompt Hacks To Maximally Optimise Your Queries
Exploring ChatGPT Prompt Hacks To Maximally Optimise Your QueriesExploring ChatGPT Prompt Hacks To Maximally Optimise Your Queries
Exploring ChatGPT Prompt Hacks To Maximally Optimise Your Queries
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 

07 gui 10

  • 1. GUI Applications Development Using .NET Framework Objectives In this session, you will learn to: Create a Help System using HTML Workshop Implement Help System in .NET applications Work with built-in components in the .NET applications Work with user-defined components in the .NET applications Ver. 1.0 Session 10 Slide 1 of 24
  • 2. GUI Applications Development Using .NET Framework Help Files A help system within an application assists the user while using the application. A help system comprises of several help files and components that are created using HTML Help Workshop. HTML Help Workshop (hhw.exe) is a help-authoring tool provided by Microsoft for creating help systems. Some files that make up a help system are: HTML files Graphics and Multimedia files Help Project files Contents files Index files Ver. 1.0 Session 10 Slide 2 of 24
  • 3. GUI Applications Development Using .NET Framework Help Files (Contd.) The HTML Help Workshop allows to create a help system with standard features of any help system. The features are: Table of contents Index Provides users with a Helps users to quickly hierarchical view of search for information the various help they need. topics. Ver. 1.0 Session 10 Slide 3 of 24
  • 4. GUI Applications Development Using .NET Framework Just a minute What is the extension of a compiled help project file? Answer: .chm Ver. 1.0 Session 10 Slide 4 of 24
  • 5. GUI Applications Development Using .NET Framework Demo: Building a Help System Problem Statement: You have created an application for a retail store. The application maintains the records of its customers. Before making the final delivery of the application, you want to implement the help system in the application. You need to create the help system using the HTML Help Workshop. Ver. 1.0 Session 10 Slide 5 of 24
  • 6. GUI Applications Development Using .NET Framework Demo: Building a Help System (Contd.) Solution: To build Help system using the HTML Help Workshop, you need to perform the following tasks: 1. Create a project file. 2. Create the HTML topic pages. 3. Create an index. 4. Create a table of contents. 5. Compile and verify the project file. Ver. 1.0 Session 10 Slide 6 of 24
  • 7. GUI Applications Development Using .NET Framework Providing Context-Sensitive Help Context-sensitive help assists users by providing help based on a specific dialog box or a control in a program. To add context-sensitivity to the application, the various controls in the form need to be linked with the Help file. To add context-sensitive help to a control, you need to set the following properties for controls: ShowHelp on <HelpProvider control> to True. HelpKeyword on <HelpProvider control> to an appropriate keyword for retrieving help. HelpNavigator property to the required value. Ver. 1.0 Session 10 Slide 7 of 24
  • 8. GUI Applications Development Using .NET Framework Providing Context-Sensitive Help (Contd.) To implement context-sensitive help, you need to perform the following tasks: 1. Link your application with a help file. 2. Add context-sensitive help to various form elements. Ver. 1.0 Session 10 Slide 8 of 24
  • 9. GUI Applications Development Using .NET Framework Just a minute Which property value of the HelpNavigator property will display the index for a specified topic? 1. Index 2. AssociateIndex 3. KeywordIndex 4. Topic Answer: 2. AssociateIndex Ver. 1.0 Session 10 Slide 9 of 24
  • 10. GUI Applications Development Using .NET Framework Working with Pop-up Help Pop-up help is most effective in modal dialog boxes. To display Help button on the title bar of a form, you need to perform the following steps: Set the MinimizeBox and MaximizeBox properties of the form to False. Set the HelpButton property of the form to True. Add a HelpProvider control to the form. Ver. 1.0 Session 10 Slide 10 of 24
  • 11. GUI Applications Development Using .NET Framework Working with ToolTip Control A tool tip is a brief message for individual controls on a form. The message can be displayed by using the ToolTip control present in the Toolbox. Two of the important properties of the ToolTip control are: Active Is used to set the current status of the ToolTip control. AutomaticDelay The property can be set to either True or False. By default, the Active property is set to True. Is used to set time in milliseconds after which the tool tip would appear. By default, the AutomaticDelay property is set to 500. Ver. 1.0 Session 10 Slide 11 of 24
  • 12. GUI Applications Development Using .NET Framework Working with ToolTip Control (Contd.) There are three properties of the ToolTip control that have values based on the value of the AutomaticDelay property. These properties are: AutoPopDelay InitialDelay ReshowDelay Ver. 1.0 Session 10 Slide 12 of 24
  • 13. GUI Applications Development Using .NET Framework Working with Built-in Components in the .NET Applications A component is a reusable piece of code in binary form, which can be used along with other components. Ver. 1.0 Session 10 Slide 13 of 24
  • 14. GUI Applications Development Using .NET Framework Types of Components Components can be divided into the following types: Built-in components User-defined components Ver. 1.0 Session 10 Slide 14 of 24
  • 15. GUI Applications Development Using .NET Framework Guidelines for Creating Components Some guidelines for creating a component are: The name of a component class should be short and meaningful. You can control the use of a component by using proper access level for constructors. Ver. 1.0 Session 10 Slide 15 of 24
  • 16. GUI Applications Development Using .NET Framework Just a minute Name the template, which is used to create a user-defined component. Answer: Class Library Ver. 1.0 Session 10 Slide 16 of 24
  • 17. GUI Applications Development Using .NET Framework Implementing Built-in Components The .NET Framework provides several components besides the standard controls that are provided in the Toolbox window. These controls can be added to the Toolbox window by adding reference of the control to the application. Ver. 1.0 Session 10 Slide 17 of 24
  • 18. GUI Applications Development Using .NET Framework Working with User-Defined Components in the .NET Applications A .NET component: is a .NET assembly with a .DLL extension is a pre-compiled class module .NET components provide an interface that defines: Properties Methods Events .NET component can contain more that one class that enables to organize the application in a better manner. .NET components can be categorized as: In-process components Out-of-process components Ver. 1.0 Session 10 Slide 18 of 24
  • 19. GUI Applications Development Using .NET Framework In-Process Components In-process components: are loaded and executed within the process space of the host application. share processor time and memory with their host applications. Ver. 1.0 Session 10 Slide 19 of 24
  • 20. GUI Applications Development Using .NET Framework Out-of-Process Components Out-of-process components run as independent processes in the operating system. Windows creates a new process and loads out-of-process components into this process. Ver. 1.0 Session 10 Slide 20 of 24
  • 21. GUI Applications Development Using .NET Framework Out-of-Process Components (Contd.) .NET components are further divided into two different categories. These are: – Nonvisual components The .NET components that do not – Visual components have a user interface are called nonvisual components. Ver. 1.0 Session 10 Slide 21 of 24
  • 22. GUI Applications Development Using .NET Framework Out-of-Process Components (Contd.) .NET components are further divided into two different categories. These are: – Nonvisual components – Visual components The .NET components that have a user interface associated with them are called visual components or user controls. Ver. 1.0 Session 10 Slide 22 of 24
  • 23. GUI Applications Development Using .NET Framework Summary In this session, you learned that: Visual Studio.NET allows the creation of three types of help systems: • HTML Help • Pop-up Help • Tool Tips – The HelpProvider control is used to associate a Help file with an application. – The Help file to be associated with the HelpProvider control is specified using the HelpNamespace property of the HelpProvider control. – The HelpKeyword property of a control is used to set the keyword for retrieving help from the Help file specified in the HelpNamespace property. Ver. 1.0 Session 10 Slide 23 of 24
  • 24. GUI Applications Development Using .NET Framework Summary (Contd.) A component is a reusable piece of code in binary form that can be used along with the components from other vendors, with relatively little effort. The types of components are: • Built-in components • User-defined components To create a user-defined component, the Class Library template under the Templates section in the New Project dialog box needs to be selected. The .NET Framework provides several components besides the standard controls that are provided in the Toolbox window. .NET components can be categorized into two types. The types are: In-process components Out-of-process components Ver. 1.0 Session 10 Slide 24 of 24

Editor's Notes

  1. Start the session by sharing the session objectives with the students.
  2. Using this slide and the next slide, discuss with the students that whenever a new software product is launched, there is a help system that helps the users to learn and understand the product in a better manner. Also whenever you purchase a new product, such as a mobile phone, TV, music system, or any other electronic gadget, there is a complete manual available with the product. This manual assists the person to understand the product completely and use it comfortably. Similarly, whenever you develop an application, you can attach a help system that will help the users using that application to understand the application better. The help system assists the users on performing an operation or provide information about a button or a dialog box.
  3. Reiterate the concepts taught earlier by asking the given question.
  4. Conduct the activity stated in the slide in a collaborative mode in the class.
  5. Conduct the activity stated in the slide in a collaborative mode in the class.
  6. Using this and the next slide, discuss the context-sensitive help with the students. A better way to make the students understand is with the help of a small demo that shows various properties to be set.
  7. Reiterate the concepts taught earlier by asking the given question.
  8. Using this slide, discuss the Pop-up help with the students. A better way to make the students understand is with the help of a small demo that shows various properties to be set.
  9. Using this slide discuss with the students that at times the text appearing over the control, such as a button or label, may not be self-explanatory. Also, the user may see a text box on the form, but may not be sure about the type of data to be entered there. Therefore, in such situations a brief message can be displayed using the tooltip for that particular control. Discuss the various properties available with this control with the help of a small demo. This will make the learning better.
  10. Discuss with the students that AutoPopDelay: Is used to set the time period for which the tool tip is displayed on the screen when the mouse pointer is stationary in a tool tip region. InitialDelay: Is used to set the time period for which the mouse pointer should be stationary in the tool tip region before the tool tip appears. ReshowDelay: Is used to set the time taken by the subsequent instances of the tool tip to appear when the mouse pointer is moved from one tool tip region to another
  11. Initiate the discussion for components with the help of example. You can take the same example as in the SG. Alternately, you can use the following example also: A developer needs to develop a Student Details Application for a Computer Institute, that contains forms for: Student’s Personal Details Entry Student’s Batch Details Entry Student’s Fee Details Entry Student’s Appraisal Details Entry Each form has several text boxes and the following validations need to be done: 1) Some of the text boxes need to have only numeric data (such as telephone no, fee paid, marks obtained, total marks, project marks). 2) Some other text boxes need to have only alphabets (such as Student’s name, parent or guardian name, and faculty name) 3) Some of the text boxes can have alphanumeric characters. Instead of validating all these text boxes separately, the developer can design 2 reusable components: 1) A text box that can accept only numbers 2) A text box that can accept only alphabets The advantage of designing these components will be that the developer will not have to write code for validating all the text boxes separately. The developer can design these two types of text boxes once and reuse them whenever required.
  12. Using this slide, discuss the two types of components with the students. Also try to give an example for each of them.
  13. For the second point, discuss with the students that c lasses or components that are used internally by the assembly should have private access whereas a component that is intended for use outside the containing assembly should have public access.
  14. Reiterate the concepts taught earlier by asking the given question.
  15. For the second point, discuss with the students that c lasses or components that are used internally by the assembly should have private access whereas a component that is intended for use outside the containing assembly should have public access.
  16. Discuss the concept of components with the student by taking an example. Discuss further that these components can have properties, methods, and events. This can be done with the help of an example.
  17. Using this and the next slide, discuss the concept of in-process and out-of-process components with the students. In-process components run within the process space of the host application and are loaded at run-time. Out-of-process components, such as server applications, run as independent processes in the operating system. Using this concept, you can ask the students to compare the two types of components. Ask the following question to the students: What is the advantage and disadvantage of both the type of components? Collate the points discussed with the students and lead the discussion towards the following points: 1)Since in-process components run within the process space, therefore, accessing these components is less time consuming. 2)Since out-of-process components run as independent processes, therefore, accessing them is more time consuming. 3)Since in-process components run within the process space, therefore, only the application that accesses them can use it and multiple instances of these components will have to be created by all the applications that require them. 4)Since out-of-process components run as independent processes, therefore, any application that requires them can use it and multiple instances of these need not be created.
  18. In addition to previous classification of .NET components, they can also be categorized as visual and non-visual components. Using this and the next slide, the faculty can explain these two types of components with the help of the following example : Non-Visual component: A class created that acts as a calculator. It has all the functionality of a calculator. Whenever the user needs to do calculations, he need not create fresh functions for that. He can create a reference of this class and use the functions within this class. Visual component: A component that is a numeric text-box. This component accepts only numbers and can be used in various applications whenever required.
  19. 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.