SlideShare a Scribd company logo
1 of 34
Hello!
I am Ma. Wennilou Porazo
Instructor
1
An
Introduction
to Visual
Basic
After studying Lesson A, you should
be able to:
● Start and customize Visual Studio 2010 or Visual Basic 2010
Express
● Create a Visual Basic 2010 Windows application
● Manage the windows in the IDE
● Set the properties of an object
3
After studying Lesson A, you should
be able to:
● Restore a property to its default setting
● Save a solution
● Close and open an existing solution
4
To create a Visual Basic 2010
Windows Application
● Click FILE on the menu bar,and then click New
Project
● Enter Splash project in the Name Box
● Locate a folder to store the project.
● Select Create Directory for Solution
5
6
Figure 1-4 Completed New Project dialog box in Visual Studio
7
8
9
10
Managing the Windows in the IDE
● To open the Properties Window:
○ Click VIEW on the menu bar, and then click
Properties Window
○ Or mouseover the Solution Explorer tab if
the window is auto-hidden
11
(cont.)
● To close a window:
○ Use the Close button on the window’s title bar
● To minimize a window to a tab:
○ Click the Auto Hide (push-pin) button on the
Solution Explorer window
12
13
Windows
Form
Designer
Window
14
Solution Explorer Window
● Displays a list of projects
contained in the current
solution and items
contained in each project
15
● Source file
○ A file containing program instruction (code)
○ Form file: a kind of source file
■ Contains code associated with a form
■ The first form’s code is stored in Form1.vb
■ The second form’s code is stored in Form2.vb
16
Properties Window
17
Properties of a Form File
● Using the Properties window to change a form
file’s name
○ Click Form1.vb Source file in Solution
Explorer Window
■ Click File Name in Properties list
18
Properties of a Form File (cont.)
● Type Splash Form.vb
○ vb extension identifies the file as a source file
○ Press Enter
19
20
Properties a Form File
21
P
R
O
P
E
R
T
I
E
S
Of
A
Window Form
Important Properties of a Windows
● 1. Name Property
○ Windows forms have a Name property
○ Use it to refer to the form in the program
code
22
● Naming conventions are used for clarity
○ Hungarian notation for a variable
■ frmSplash : “frm” indicates a form (data type
of the variable), and “Splash” is the purpose
of the variable
○ Camel case
■ Enter the data type name of a VB object in
lowercase and then capitalize the first
letter of each subsequent word in the name
23
2. Text Property
● The Text property
controls the text displayed
in the form’s title bar
○ The default text for
the Text property of
Form 1 is Form1.
24
Text Property (cont.)
● Change the default name to something
meaningful
○ The Name property is used by the
programmer
○ The Text property is read by the user when
the application is running
25
3. Font property
● A font is the general shape of a character
● Font styles include regular, bold, and italic
● Font sizes (8, 10, 12, etc.) are in points, with 1
point equaling 1/72 of an inch
26
4. Size Property
 A form can be sized by dragging the sizing
handles that appear around it.
 You also can size an object by selecting it and
then pressing and holding down the Shift key as
you press the up, down, right, or left arrow key on
the keyboard.
27
Size Property (cont.)
● You also can set the object’s Size property, which
contains two numbers, measured in pixels:
○ The first number represents the width of the
form.
○ The second number represents the height of
the form
28
29
Saving, Closing, Opening, and Exiting
a Solution
● 1. Saving a Solution
○ An asterisk (*) appears on the designer tab
whenever you make a change to the form
○ Save the solution by clicking FILE on the
menu bar and then clicking Save All.
30
2. Closing the Current Solution
● Click FILE on the menu bar and then click Close
Solution
● To exit Visual Studio 2012, click FILE on the menu
bar and then click Exit
31
3. Opening an Existing Solution
● Click FILE on the menu bar, and then locate and
open the solution from the list of filenames
available
32
Lesson A Summary
● Starting Visual Studio
● Creating a Visual Basic 2010 Windows Application
● Resetting a window layout
● Closing and opening windows
● Auto-hiding a window
● Setting property values (name, text, font, size)
● Saving, closing and opening solution
● Existing Visual Studio 2010
33
Thanks!
34

More Related Content

Similar to CHAPTER 1: Lesson A

Visual Studio 2012 Course Blackboard TIC
Visual Studio 2012 Course Blackboard TICVisual Studio 2012 Course Blackboard TIC
Visual Studio 2012 Course Blackboard TICMauricio Correa
 
Chapter 2 — Program and Graphical User Interface Design
Chapter 2 — Program and Graphical User Interface DesignChapter 2 — Program and Graphical User Interface Design
Chapter 2 — Program and Graphical User Interface Designfrancopw
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0sanket1996
 
Chapter 02
Chapter 02Chapter 02
Chapter 02llmeade
 
Visual programming basic.ppt bs cs5th class
Visual programming basic.ppt bs cs5th classVisual programming basic.ppt bs cs5th class
Visual programming basic.ppt bs cs5th classmnewg218
 
Power point project 1
Power point project 1Power point project 1
Power point project 1paco prieto
 
Gl13 m4-presentation
Gl13 m4-presentationGl13 m4-presentation
Gl13 m4-presentationTracie King
 
The visual studio start page is shown in the figure below
The visual studio start page is shown in the figure belowThe visual studio start page is shown in the figure below
The visual studio start page is shown in the figure belowTan Ps
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxEliasPetros
 
Microsoft Power Point
Microsoft Power PointMicrosoft Power Point
Microsoft Power PointSarhad Baez
 
Sw13 ch01-presentation
Sw13 ch01-presentationSw13 ch01-presentation
Sw13 ch01-presentationCEPadgett
 
Power point chapter 1 1
Power point chapter 1 1Power point chapter 1 1
Power point chapter 1 1jhaastrup1
 
Power point project 1
Power point project 1Power point project 1
Power point project 1MiDoø MAnø
 
IMED 1416 Chapter 01
IMED 1416 Chapter 01IMED 1416 Chapter 01
IMED 1416 Chapter 01Bobby Rivera
 

Similar to CHAPTER 1: Lesson A (20)

Visual Studio 2012 Course Blackboard TIC
Visual Studio 2012 Course Blackboard TICVisual Studio 2012 Course Blackboard TIC
Visual Studio 2012 Course Blackboard TIC
 
Chapter 2 — Program and Graphical User Interface Design
Chapter 2 — Program and Graphical User Interface DesignChapter 2 — Program and Graphical User Interface Design
Chapter 2 — Program and Graphical User Interface Design
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
Chapter 02
Chapter 02Chapter 02
Chapter 02
 
Introduction to computing
Introduction to computingIntroduction to computing
Introduction to computing
 
Visual programming basic.ppt bs cs5th class
Visual programming basic.ppt bs cs5th classVisual programming basic.ppt bs cs5th class
Visual programming basic.ppt bs cs5th class
 
Intake 37 9
Intake 37 9Intake 37 9
Intake 37 9
 
Power point project 1
Power point project 1Power point project 1
Power point project 1
 
Gl13 m4-presentation
Gl13 m4-presentationGl13 m4-presentation
Gl13 m4-presentation
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 
Power point chapter 1
Power point chapter 1Power point chapter 1
Power point chapter 1
 
The visual studio start page is shown in the figure below
The visual studio start page is shown in the figure belowThe visual studio start page is shown in the figure below
The visual studio start page is shown in the figure below
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
 
Power point chapter 2
Power point chapter 2Power point chapter 2
Power point chapter 2
 
Microsoft Power Point
Microsoft Power PointMicrosoft Power Point
Microsoft Power Point
 
Intake 38 9
Intake 38 9Intake 38 9
Intake 38 9
 
Sw13 ch01-presentation
Sw13 ch01-presentationSw13 ch01-presentation
Sw13 ch01-presentation
 
Power point chapter 1 1
Power point chapter 1 1Power point chapter 1 1
Power point chapter 1 1
 
Power point project 1
Power point project 1Power point project 1
Power point project 1
 
IMED 1416 Chapter 01
IMED 1416 Chapter 01IMED 1416 Chapter 01
IMED 1416 Chapter 01
 

More from MLG College of Learning, Inc (20)

PC111.Lesson2
PC111.Lesson2PC111.Lesson2
PC111.Lesson2
 
PC111.Lesson1
PC111.Lesson1PC111.Lesson1
PC111.Lesson1
 
PC111-lesson1.pptx
PC111-lesson1.pptxPC111-lesson1.pptx
PC111-lesson1.pptx
 
PC LEESOON 6.pptx
PC LEESOON 6.pptxPC LEESOON 6.pptx
PC LEESOON 6.pptx
 
PC 106 PPT-09.pptx
PC 106 PPT-09.pptxPC 106 PPT-09.pptx
PC 106 PPT-09.pptx
 
PC 106 PPT-07
PC 106 PPT-07PC 106 PPT-07
PC 106 PPT-07
 
PC 106 PPT-01
PC 106 PPT-01PC 106 PPT-01
PC 106 PPT-01
 
PC 106 PPT-06
PC 106 PPT-06PC 106 PPT-06
PC 106 PPT-06
 
PC 106 PPT-05
PC 106 PPT-05PC 106 PPT-05
PC 106 PPT-05
 
PC 106 Slide 04
PC 106 Slide 04PC 106 Slide 04
PC 106 Slide 04
 
PC 106 Slide no.02
PC 106 Slide no.02PC 106 Slide no.02
PC 106 Slide no.02
 
pc-106-slide-3
pc-106-slide-3pc-106-slide-3
pc-106-slide-3
 
PC 106 Slide 2
PC 106 Slide 2PC 106 Slide 2
PC 106 Slide 2
 
PC 106 Slide 1.pptx
PC 106 Slide 1.pptxPC 106 Slide 1.pptx
PC 106 Slide 1.pptx
 
Db2 characteristics of db ms
Db2 characteristics of db msDb2 characteristics of db ms
Db2 characteristics of db ms
 
Db1 introduction
Db1 introductionDb1 introduction
Db1 introduction
 
Lesson 3.2
Lesson 3.2Lesson 3.2
Lesson 3.2
 
Lesson 3.1
Lesson 3.1Lesson 3.1
Lesson 3.1
 
Lesson 1.6
Lesson 1.6Lesson 1.6
Lesson 1.6
 
Lesson 3.2
Lesson 3.2Lesson 3.2
Lesson 3.2
 

Recently uploaded

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 

Recently uploaded (20)

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 

CHAPTER 1: Lesson A

  • 1. Hello! I am Ma. Wennilou Porazo Instructor 1
  • 3. After studying Lesson A, you should be able to: ● Start and customize Visual Studio 2010 or Visual Basic 2010 Express ● Create a Visual Basic 2010 Windows application ● Manage the windows in the IDE ● Set the properties of an object 3
  • 4. After studying Lesson A, you should be able to: ● Restore a property to its default setting ● Save a solution ● Close and open an existing solution 4
  • 5. To create a Visual Basic 2010 Windows Application ● Click FILE on the menu bar,and then click New Project ● Enter Splash project in the Name Box ● Locate a folder to store the project. ● Select Create Directory for Solution 5
  • 6. 6 Figure 1-4 Completed New Project dialog box in Visual Studio
  • 7. 7
  • 8. 8
  • 9. 9
  • 10. 10
  • 11. Managing the Windows in the IDE ● To open the Properties Window: ○ Click VIEW on the menu bar, and then click Properties Window ○ Or mouseover the Solution Explorer tab if the window is auto-hidden 11
  • 12. (cont.) ● To close a window: ○ Use the Close button on the window’s title bar ● To minimize a window to a tab: ○ Click the Auto Hide (push-pin) button on the Solution Explorer window 12
  • 13. 13
  • 15. Solution Explorer Window ● Displays a list of projects contained in the current solution and items contained in each project 15
  • 16. ● Source file ○ A file containing program instruction (code) ○ Form file: a kind of source file ■ Contains code associated with a form ■ The first form’s code is stored in Form1.vb ■ The second form’s code is stored in Form2.vb 16
  • 18. Properties of a Form File ● Using the Properties window to change a form file’s name ○ Click Form1.vb Source file in Solution Explorer Window ■ Click File Name in Properties list 18
  • 19. Properties of a Form File (cont.) ● Type Splash Form.vb ○ vb extension identifies the file as a source file ○ Press Enter 19
  • 22. Important Properties of a Windows ● 1. Name Property ○ Windows forms have a Name property ○ Use it to refer to the form in the program code 22
  • 23. ● Naming conventions are used for clarity ○ Hungarian notation for a variable ■ frmSplash : “frm” indicates a form (data type of the variable), and “Splash” is the purpose of the variable ○ Camel case ■ Enter the data type name of a VB object in lowercase and then capitalize the first letter of each subsequent word in the name 23
  • 24. 2. Text Property ● The Text property controls the text displayed in the form’s title bar ○ The default text for the Text property of Form 1 is Form1. 24
  • 25. Text Property (cont.) ● Change the default name to something meaningful ○ The Name property is used by the programmer ○ The Text property is read by the user when the application is running 25
  • 26. 3. Font property ● A font is the general shape of a character ● Font styles include regular, bold, and italic ● Font sizes (8, 10, 12, etc.) are in points, with 1 point equaling 1/72 of an inch 26
  • 27. 4. Size Property  A form can be sized by dragging the sizing handles that appear around it.  You also can size an object by selecting it and then pressing and holding down the Shift key as you press the up, down, right, or left arrow key on the keyboard. 27
  • 28. Size Property (cont.) ● You also can set the object’s Size property, which contains two numbers, measured in pixels: ○ The first number represents the width of the form. ○ The second number represents the height of the form 28
  • 29. 29
  • 30. Saving, Closing, Opening, and Exiting a Solution ● 1. Saving a Solution ○ An asterisk (*) appears on the designer tab whenever you make a change to the form ○ Save the solution by clicking FILE on the menu bar and then clicking Save All. 30
  • 31. 2. Closing the Current Solution ● Click FILE on the menu bar and then click Close Solution ● To exit Visual Studio 2012, click FILE on the menu bar and then click Exit 31
  • 32. 3. Opening an Existing Solution ● Click FILE on the menu bar, and then locate and open the solution from the list of filenames available 32
  • 33. Lesson A Summary ● Starting Visual Studio ● Creating a Visual Basic 2010 Windows Application ● Resetting a window layout ● Closing and opening windows ● Auto-hiding a window ● Setting property values (name, text, font, size) ● Saving, closing and opening solution ● Existing Visual Studio 2010 33