SlideShare a Scribd company logo
Visual Basic
Multiple Forms
2
Objectives
 Create multiple forms for a project.
 Use multiple forms to add an About
box to your program.
 Use multiple forms to create a Splash
screen that loads when your program
starts.
 Modify a form at run time.
3
Using Multiple Forms
 Visual basic .NET allows you to work
with multiple forms.
 A splash screen is a window that
appears briefly when a program is
started.
 An About box might include
information about the program.
4
Creating a New Form
 The first step in using additional forms in
your project is to create the new form.
 To get the About box to appear, some
command must be issued.
 A modal form must be dismissed before you can
continue working with the application.
 A modaless form can stay on the screen and be
moved behind other forms in a project .
5
Adding a Splash Screen
 Adding a splash screen is similar to
adding an About box.
 The splash screen must be loaded before
your main screen.
 Unlike an About box, a splash screen
does not have a command to close it.
6
Modifying a Form at Run Time
 Just as the objects on a form can be
modified while the form is being
displayed, form objects can also be
modified before the form is displayed.
7
Summary
 Visual Basic. NET programs can include
multiple forms. Splash screens and About
boxes are two common uses for additional
forms in a program.
 Modal forms must be closed before other
forms in a project can be used.
 Modaless forms can remain open, and a
program can switch back and forth between
several modaless forms.
8
Summary (continued)
 The Close method is used to shut down a
form and leave the program running.
 A program module that includes only code
can be used to control several forms.
 Forms can be created without any border
and placed in the center of the screen.
9
Summary (continued)
 The Property Pages dialog box lets you
select which form or module starts up the
program when it runs.
 The properties of a form and the object on
the form can be changed under program
control before the form is displayed.

More Related Content

What's hot

Visual basic
Visual basicVisual basic
Visual basic
umesh patil
 
Applets in java
Applets in javaApplets in java
Applets in java
Wani Zahoor
 
itft-Decision making and branching in java
itft-Decision making and branching in javaitft-Decision making and branching in java
itft-Decision making and branching in java
Atul Sehdev
 
MULTI THREADING IN JAVA
MULTI THREADING IN JAVAMULTI THREADING IN JAVA
MULTI THREADING IN JAVA
VINOTH R
 
Crystal report
Crystal reportCrystal report
Crystal report
Everywhere
 
Applet life cycle
Applet life cycleApplet life cycle
Applet life cyclemyrajendra
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
Rahul Pola
 
RichControl in Asp.net
RichControl in Asp.netRichControl in Asp.net
RichControl in Asp.netBhumivaghasiya
 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++
rprajat007
 
Sql fundamentals
Sql fundamentalsSql fundamentals
Sql fundamentals
Ravinder Kamboj
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypesVarun C M
 
Form using html and java script validation
Form using html and java script validationForm using html and java script validation
Form using html and java script validation
Maitree Patel
 
Ooad presentatin crc cards
Ooad presentatin crc cardsOoad presentatin crc cards
Ooad presentatin crc cards
Hitachi Systems Micro Clinic
 
Inline function
Inline functionInline function
Inline functionTech_MX
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0Aarti P
 
FUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPTFUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPT
03062679929
 
Objects and classes in Visual Basic
Objects and classes in Visual BasicObjects and classes in Visual Basic
Objects and classes in Visual Basic
Sangeetha Sg
 

What's hot (20)

File handling in c++
File handling in c++File handling in c++
File handling in c++
 
Visual basic
Visual basicVisual basic
Visual basic
 
Visual Basic 6.0
Visual Basic 6.0Visual Basic 6.0
Visual Basic 6.0
 
Applets in java
Applets in javaApplets in java
Applets in java
 
itft-Decision making and branching in java
itft-Decision making and branching in javaitft-Decision making and branching in java
itft-Decision making and branching in java
 
MULTI THREADING IN JAVA
MULTI THREADING IN JAVAMULTI THREADING IN JAVA
MULTI THREADING IN JAVA
 
Crystal report
Crystal reportCrystal report
Crystal report
 
Applet life cycle
Applet life cycleApplet life cycle
Applet life cycle
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
 
Sdi & mdi
Sdi & mdiSdi & mdi
Sdi & mdi
 
RichControl in Asp.net
RichControl in Asp.netRichControl in Asp.net
RichControl in Asp.net
 
Class and object in C++
Class and object in C++Class and object in C++
Class and object in C++
 
Sql fundamentals
Sql fundamentalsSql fundamentals
Sql fundamentals
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
 
Form using html and java script validation
Form using html and java script validationForm using html and java script validation
Form using html and java script validation
 
Ooad presentatin crc cards
Ooad presentatin crc cardsOoad presentatin crc cards
Ooad presentatin crc cards
 
Inline function
Inline functionInline function
Inline function
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
FUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPTFUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPT
 
Objects and classes in Visual Basic
Objects and classes in Visual BasicObjects and classes in Visual Basic
Objects and classes in Visual Basic
 

Similar to VB Multiple Forms

Project BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docx
Project BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docxProject BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docx
Project BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docx
stilliegeorgiana
 
Lesson 4 Introduction to Human Computer Interaction.pptx
Lesson 4 Introduction to Human Computer Interaction.pptxLesson 4 Introduction to Human Computer Interaction.pptx
Lesson 4 Introduction to Human Computer Interaction.pptx
EllenGracePorras
 
Login Project with introduction .pptx
Login Project with introduction .pptxLogin Project with introduction .pptx
Login Project with introduction .pptx
kulmiyealiabdille
 
Fulcrum eForm Creation Tool
Fulcrum eForm Creation ToolFulcrum eForm Creation Tool
Fulcrum eForm Creation Tool
kapilkantkamal
 
Open sap ui5 - week_2 unit_1_syjewa_exercises
Open sap ui5  - week_2 unit_1_syjewa_exercisesOpen sap ui5  - week_2 unit_1_syjewa_exercises
Open sap ui5 - week_2 unit_1_syjewa_exercises
Borusan Birlik Danışmanlık
 
vb.pptx
vb.pptxvb.pptx
vb.pptx
CherryLim21
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdf
LimEchYrr
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptx
LimEchYrr
 
Vb lecture
Vb lectureVb lecture
Vb lecture
alldesign
 
A report on mvc using the information
A report on mvc using the informationA report on mvc using the information
A report on mvc using the information
Toushik Paul
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0sanket1996
 
Flutter App Performance Optimization_ Tips and Techniques.pdf
Flutter App Performance Optimization_ Tips and Techniques.pdfFlutter App Performance Optimization_ Tips and Techniques.pdf
Flutter App Performance Optimization_ Tips and Techniques.pdf
DianApps Technologies
 
I phone first app ducat
I phone first app ducatI phone first app ducat
I phone first app ducat
Pragati Singh
 
Primavera vs microsoft project
Primavera vs microsoft projectPrimavera vs microsoft project
Primavera vs microsoft project
CADD Centre Software Solutions Private Limited
 
GEIT 3341 DATABASE I LAB 2 GEIT 3341 Database I
GEIT 3341  DATABASE I  LAB 2  GEIT 3341 Database I  GEIT 3341  DATABASE I  LAB 2  GEIT 3341 Database I
GEIT 3341 DATABASE I LAB 2 GEIT 3341 Database I
MatthewTennant613
 
Ms project 2000 tutorial
Ms project 2000 tutorialMs project 2000 tutorial
Ms project 2000 tutorialpaolocollector
 
Using splash screens in java me applications
Using splash screens in java me applicationsUsing splash screens in java me applications
Using splash screens in java me applications
Orlando Barcia
 
control structure in visual basic
control structure in visual basic control structure in visual basic
control structure in visual basic
classall
 
Top 11 most popular drupal 8 ready modules of 2017
Top 11 most popular drupal 8 ready modules of 2017Top 11 most popular drupal 8 ready modules of 2017
Top 11 most popular drupal 8 ready modules of 2017
MAAN Softwares INC.
 

Similar to VB Multiple Forms (20)

Project BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docx
Project BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docxProject BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docx
Project BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docx
 
Lesson 4 Introduction to Human Computer Interaction.pptx
Lesson 4 Introduction to Human Computer Interaction.pptxLesson 4 Introduction to Human Computer Interaction.pptx
Lesson 4 Introduction to Human Computer Interaction.pptx
 
Login Project with introduction .pptx
Login Project with introduction .pptxLogin Project with introduction .pptx
Login Project with introduction .pptx
 
Fulcrum eForm Creation Tool
Fulcrum eForm Creation ToolFulcrum eForm Creation Tool
Fulcrum eForm Creation Tool
 
Open sap ui5 - week_2 unit_1_syjewa_exercises
Open sap ui5  - week_2 unit_1_syjewa_exercisesOpen sap ui5  - week_2 unit_1_syjewa_exercises
Open sap ui5 - week_2 unit_1_syjewa_exercises
 
vb.pptx
vb.pptxvb.pptx
vb.pptx
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdf
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptx
 
Vb lecture
Vb lectureVb lecture
Vb lecture
 
A report on mvc using the information
A report on mvc using the informationA report on mvc using the information
A report on mvc using the information
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
Flutter App Performance Optimization_ Tips and Techniques.pdf
Flutter App Performance Optimization_ Tips and Techniques.pdfFlutter App Performance Optimization_ Tips and Techniques.pdf
Flutter App Performance Optimization_ Tips and Techniques.pdf
 
I phone first app ducat
I phone first app ducatI phone first app ducat
I phone first app ducat
 
Primavera vs microsoft project
Primavera vs microsoft projectPrimavera vs microsoft project
Primavera vs microsoft project
 
GEIT 3341 DATABASE I LAB 2 GEIT 3341 Database I
GEIT 3341  DATABASE I  LAB 2  GEIT 3341 Database I  GEIT 3341  DATABASE I  LAB 2  GEIT 3341 Database I
GEIT 3341 DATABASE I LAB 2 GEIT 3341 Database I
 
Ms project 2000 tutorial
Ms project 2000 tutorialMs project 2000 tutorial
Ms project 2000 tutorial
 
FormADF app overview
FormADF app overviewFormADF app overview
FormADF app overview
 
Using splash screens in java me applications
Using splash screens in java me applicationsUsing splash screens in java me applications
Using splash screens in java me applications
 
control structure in visual basic
control structure in visual basic control structure in visual basic
control structure in visual basic
 
Top 11 most popular drupal 8 ready modules of 2017
Top 11 most popular drupal 8 ready modules of 2017Top 11 most popular drupal 8 ready modules of 2017
Top 11 most popular drupal 8 ready modules of 2017
 

More from obrienduke

VB Lines and Shapes
VB Lines and ShapesVB Lines and Shapes
VB Lines and Shapes
obrienduke
 
Graphics
GraphicsGraphics
Graphics
obrienduke
 
M14 overview
M14 overviewM14 overview
M14 overview
obrienduke
 
Mod 12
Mod 12Mod 12
Mod 12
obrienduke
 
Module 7
Module 7Module 7
Module 7
obrienduke
 
Unit 4 bugs and debugging
Unit 4 bugs and debuggingUnit 4 bugs and debugging
Unit 4 bugs and debugging
obrienduke
 
Module 3 GUI Design
Module 3 GUI DesignModule 3 GUI Design
Module 3 GUI Design
obrienduke
 
Arrays in java
Arrays in javaArrays in java
Arrays in java
obrienduke
 
Nested loops
Nested loopsNested loops
Nested loops
obrienduke
 

More from obrienduke (9)

VB Lines and Shapes
VB Lines and ShapesVB Lines and Shapes
VB Lines and Shapes
 
Graphics
GraphicsGraphics
Graphics
 
M14 overview
M14 overviewM14 overview
M14 overview
 
Mod 12
Mod 12Mod 12
Mod 12
 
Module 7
Module 7Module 7
Module 7
 
Unit 4 bugs and debugging
Unit 4 bugs and debuggingUnit 4 bugs and debugging
Unit 4 bugs and debugging
 
Module 3 GUI Design
Module 3 GUI DesignModule 3 GUI Design
Module 3 GUI Design
 
Arrays in java
Arrays in javaArrays in java
Arrays in java
 
Nested loops
Nested loopsNested loops
Nested loops
 

Recently uploaded

Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Ashish Kohli
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
AG2 Design
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 

Recently uploaded (20)

Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 

VB Multiple Forms

  • 2. 2 Objectives  Create multiple forms for a project.  Use multiple forms to add an About box to your program.  Use multiple forms to create a Splash screen that loads when your program starts.  Modify a form at run time.
  • 3. 3 Using Multiple Forms  Visual basic .NET allows you to work with multiple forms.  A splash screen is a window that appears briefly when a program is started.  An About box might include information about the program.
  • 4. 4 Creating a New Form  The first step in using additional forms in your project is to create the new form.  To get the About box to appear, some command must be issued.  A modal form must be dismissed before you can continue working with the application.  A modaless form can stay on the screen and be moved behind other forms in a project .
  • 5. 5 Adding a Splash Screen  Adding a splash screen is similar to adding an About box.  The splash screen must be loaded before your main screen.  Unlike an About box, a splash screen does not have a command to close it.
  • 6. 6 Modifying a Form at Run Time  Just as the objects on a form can be modified while the form is being displayed, form objects can also be modified before the form is displayed.
  • 7. 7 Summary  Visual Basic. NET programs can include multiple forms. Splash screens and About boxes are two common uses for additional forms in a program.  Modal forms must be closed before other forms in a project can be used.  Modaless forms can remain open, and a program can switch back and forth between several modaless forms.
  • 8. 8 Summary (continued)  The Close method is used to shut down a form and leave the program running.  A program module that includes only code can be used to control several forms.  Forms can be created without any border and placed in the center of the screen.
  • 9. 9 Summary (continued)  The Property Pages dialog box lets you select which form or module starts up the program when it runs.  The properties of a form and the object on the form can be changed under program control before the form is displayed.