SlideShare a Scribd company logo
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

PDF
Lesson 6 - Collaborate And Approve Content
PDF
Ch12. graphical user interfaces
PPTX
Analyzing a Simple DTD
PPS
08 gui 11
PPS
Vb net xp_12
PPS
01 gui 01
PDF
Interactive material
PPS
16 asp.net session23
Lesson 6 - Collaborate And Approve Content
Ch12. graphical user interfaces
Analyzing a Simple DTD
08 gui 11
Vb net xp_12
01 gui 01
Interactive material
16 asp.net session23

Similar to 07 gui 10 (20)

PPS
02 gui 02
PPS
11 asp.net session16
PDF
LxD - Learner Experience Design
PPT
Visual Studio Toolbox Unleashed
PPT
Csphtp1 02
PDF
In application support_guide
PPS
12 asp.net session17
PPS
03 gui 04
PPS
03 asp.net session04
PPTX
Common Interface Design Components
PPTX
Introduction of c# day1
PPTX
Vb.net ide
PDF
5a329780735625624 ch10
PPS
Vb.net session 02
PDF
Vs2010 Apiit Mix On Campus_Ngan Seok Chern
PPT
Usability
PPSX
Introduction of VS2012 IDE and ASP.NET Controls
PPTX
GUI & Modern UI Design
PPTX
Asp.net presentation by gajanand bohra
PPTX
Lesson 3 Introduction to Human Computer Interaction.pptx
02 gui 02
11 asp.net session16
LxD - Learner Experience Design
Visual Studio Toolbox Unleashed
Csphtp1 02
In application support_guide
12 asp.net session17
03 gui 04
03 asp.net session04
Common Interface Design Components
Introduction of c# day1
Vb.net ide
5a329780735625624 ch10
Vb.net session 02
Vs2010 Apiit Mix On Campus_Ngan Seok Chern
Usability
Introduction of VS2012 IDE and ASP.NET Controls
GUI & Modern UI Design
Asp.net presentation by gajanand bohra
Lesson 3 Introduction to Human Computer Interaction.pptx
Ad

More from Niit Care (20)

PPS
Ajs 1 b
PPS
Ajs 4 b
PPS
Ajs 4 a
PPS
Ajs 4 c
PPS
Ajs 3 b
PPS
Ajs 3 a
PPS
Ajs 3 c
PPS
Ajs 2 b
PPS
Ajs 2 a
PPS
Ajs 2 c
PPS
Ajs 1 a
PPS
Ajs 1 c
PPS
Dacj 4 2-c
PPS
Dacj 4 2-b
PPS
Dacj 4 2-a
PPS
Dacj 4 1-c
PPS
Dacj 4 1-b
PPS
Dacj 4 1-a
PPS
Dacj 1-2 b
PPS
Dacj 1-3 c
Ajs 1 b
Ajs 4 b
Ajs 4 a
Ajs 4 c
Ajs 3 b
Ajs 3 a
Ajs 3 c
Ajs 2 b
Ajs 2 a
Ajs 2 c
Ajs 1 a
Ajs 1 c
Dacj 4 2-c
Dacj 4 2-b
Dacj 4 2-a
Dacj 4 1-c
Dacj 4 1-b
Dacj 4 1-a
Dacj 1-2 b
Dacj 1-3 c
Ad

Recently uploaded (20)

PPTX
A Presentation on Artificial Intelligence
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Approach and Philosophy of On baking technology
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation theory and applications.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Getting Started with Data Integration: FME Form 101
A Presentation on Artificial Intelligence
Building Integrated photovoltaic BIPV_UPV.pdf
A comparative study of natural language inference in Swahili using monolingua...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
SOPHOS-XG Firewall Administrator PPT.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Approach and Philosophy of On baking technology
Heart disease approach using modified random forest and particle swarm optimi...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation theory and applications.pdf
OMC Textile Division Presentation 2021.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
cloud_computing_Infrastucture_as_cloud_p
gpt5_lecture_notes_comprehensive_20250812015547.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Univ-Connecticut-ChatGPT-Presentaion.pdf
Getting Started with Data Integration: FME Form 101

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

  • #2: Start the session by sharing the session objectives with the students.
  • #3: 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.
  • #5: Reiterate the concepts taught earlier by asking the given question.
  • #6: Conduct the activity stated in the slide in a collaborative mode in the class.
  • #7: Conduct the activity stated in the slide in a collaborative mode in the class.
  • #8: 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.
  • #10: Reiterate the concepts taught earlier by asking the given question.
  • #11: 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.
  • #12: 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.
  • #13: 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
  • #14: 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.
  • #15: Using this slide, discuss the two types of components with the students. Also try to give an example for each of them.
  • #16: 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.
  • #17: Reiterate the concepts taught earlier by asking the given question.
  • #18: 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.
  • #19: 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.
  • #20: 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.
  • #22: 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.
  • #24: 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.