SlideShare a Scribd company logo
Visual programming
Chapter 1: Introduction
Eman Alnaji
Dareen Hamoudeh
2
Contents
 Introduction – Visual Studio 2012
 Start Page
 Create a New Project
 Forms.cs
 Solution Explorer
 Toolbox
 Properties Window
 Project Physical Folder
 Run the Project
3
Introduction – Visual Studio 2012
 Visual Studio 2012 is Microsoft’s Integrated Development
Environment (IDE) for creating, running and debugging
apps (also called applications) written in various .NET
programming languages.
4
Start Page
5
Create a New Project
 Start Page  New Project
Or
 File  New  Project
A Project: is a group of related files, such as the Visual C# code and any images that
might make up an app.
6
Create a New Project
7
Create a New Project
 Make sure to choose the proper language “Visual
C#”.
 And from the templates displayed, choose
“Windows Forms Applications”
 This template will enable you to start your project
with the first screen that will be displayed to the
users of the resulted application. This form
(window) will be filled with controls that can be
used by the user.
 Give a name of your project, specify its location
on your PC, and finally give a name to the
solution. For beginners, we use the same name of
8
Create a New Project
 A Solution: contains several projects, and it is
usually used for large systems.
 In this course, we will create only one project in
a solution.
 Now, Press “OK”
9
A Project “Start” is created
10
Forms.cs
 Form1.cs [Design]
This window displays the
file form1.cs in design
mode.
In this window you can
add the needed controls to
the form.
Your project may contain
several forms that act as
the windows of the
application.
11
Solution Explorer
 Solution
Explorer is
used to review
all files in your
project. Mainly,
the form1.cs
file, references,
and any images
you include in
the project.
12
Toolbox
 Toolbox: is a window
that contains all the
controls and
components that you
can add and use in a
form.
 The controls are
categorized in
several categories.
13
Toolbox
 Common Controls: is the most
used categories, since it contains
the most common controls that
you can find in most forms. For
example, buttons and textboxes.
 To add any control from the
toolbox to the form, drag and drop
the control to the desired location,
or double click on it, and it will be
placed in a location automatically
selected by the system.
14
Toolbox
 This image
displays a form
after adding a
button to it.
15
Properties Window
 The Properties window,
displays all properties
associated to the
selected control.
 You can see at the top of
this window, in the
image, that these are
the properties of Form1.
16
Properties Window
 Here, Form1
is selected
(check the
selection
handlers), so
the
properties
displayed
are
associated to
the form.
17
Properties Window
 Here, button1 is
selected, so
button1
properties are
displayed in the
window.
18
Properties Window
 Here, textBox1 is
selected, so
textBox1
properties are
displayed in the
window.
 Note that there
are some
properties are
common with the
button properties,
and others are
special for the
textbox.
19
Properties Window
 You can display
the properties
of any control,
either
alphabetically,
as in the first
image, or
categorized as
in the second
image.
20
Properties Window
 Note that each property
has a name and a value
of a certain data type. For
example, property
named “Text”, has a
string value of “button1”,
a property named
“TabIndex”, has an
integer value of “0” and a
property named “Visible”
has a boolean value of
“True”.
21
Properties Window
 The same property
window can be used to
display the events
associated to a control.
 The concept of Events
will be discussed in
Chapter 2.
22
Project Physical Folder
 When the project is created, a physical folder is created
with the same project name in the selected location, and
all files listed in the Solution Explorer, can be found there.
23
Run the Project
 Click on “Start”
button, at the
toolbar in Visual
Studio Window,
and an execution
file will be
generated of the
project, and it
will be executed
as displayed in
the image.
24
Run the Project
 Go to the Project
folder, from bin 
Debug, you can
find the execution
file
projectname.exe
(start.exe), when
you double click
the file the project
will be distributed,
even if the Visual
Studio IDE is
closed.
25
The End

More Related Content

Similar to Chapter1 of programming object orienteds (20)

PPT
Ch01
guest7a6cbb3
 
PPTX
Visual basic
mafffffe19
 
PPT
Chapter 01
Rooney Joh
 
PPTX
Windows form application - C# Training
Moutasm Tamimi
 
PDF
C# with Renas
Renas Rekany
 
PPT
4.C#
Raghu nath
 
PPTX
W1.pptx
MohamedNowfeek1
 
PPTX
Vb.net ide
Faisal Aziz
 
PPTX
WP7 HUB_Introducción a Visual Studio
MICTT Palma
 
PPT
Windows form applicationWindows form application
juraevmaruff
 
PDF
Visual Basic IDE Introduction
Ahllen Javier
 
PDF
Visual Basic IDE Intro.pdf
sheenmarie0212
 
PPTX
LECTURE 1 - Introduction to Programming.pptx
AOmaAli
 
DOCX
Visual C# 2010
Ali Mattash
 
PDF
C# p1
Renas Rekany
 
PPTX
ch 3 of C# programming in advanced programming
ZahraWaheed9
 
PPT
visual programming GDI presentation powerpoint
ZahraWaheed9
 
PPT
Visual programming Chapter 3: GUI (Graphical User Interface)
ZahraWaheed9
 
PDF
Oop c sharp_part_1
shivaksn
 
Visual basic
mafffffe19
 
Chapter 01
Rooney Joh
 
Windows form application - C# Training
Moutasm Tamimi
 
C# with Renas
Renas Rekany
 
Vb.net ide
Faisal Aziz
 
WP7 HUB_Introducción a Visual Studio
MICTT Palma
 
Windows form applicationWindows form application
juraevmaruff
 
Visual Basic IDE Introduction
Ahllen Javier
 
Visual Basic IDE Intro.pdf
sheenmarie0212
 
LECTURE 1 - Introduction to Programming.pptx
AOmaAli
 
Visual C# 2010
Ali Mattash
 
ch 3 of C# programming in advanced programming
ZahraWaheed9
 
visual programming GDI presentation powerpoint
ZahraWaheed9
 
Visual programming Chapter 3: GUI (Graphical User Interface)
ZahraWaheed9
 
Oop c sharp_part_1
shivaksn
 

More from ag3777499 (11)

PDF
Information Security Imp +Past Paper.pdf
ag3777499
 
PPT
ch04 all about software project managen
ag3777499
 
PPT
Introduction to event driven programming
ag3777499
 
PPT
5809566 programming concepts in vasters
ag3777499
 
PPT
lecture 4bw_210 css preparation in extra
ag3777499
 
PDF
organizations real estate to maake unity
ag3777499
 
PDF
Europe history for current affair of css
ag3777499
 
PPTX
Programming_Style with modern blend mode
ag3777499
 
PPTX
first aid for intermediate class to common
ag3777499
 
PPTX
Sociology Class Lecture all for sociology notes class
ag3777499
 
PDF
geography for pakistanStudies essays and other
ag3777499
 
Information Security Imp +Past Paper.pdf
ag3777499
 
ch04 all about software project managen
ag3777499
 
Introduction to event driven programming
ag3777499
 
5809566 programming concepts in vasters
ag3777499
 
lecture 4bw_210 css preparation in extra
ag3777499
 
organizations real estate to maake unity
ag3777499
 
Europe history for current affair of css
ag3777499
 
Programming_Style with modern blend mode
ag3777499
 
first aid for intermediate class to common
ag3777499
 
Sociology Class Lecture all for sociology notes class
ag3777499
 
geography for pakistanStudies essays and other
ag3777499
 
Ad

Recently uploaded (20)

PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PPSX
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PDF
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
Ad

Chapter1 of programming object orienteds

  • 1. Visual programming Chapter 1: Introduction Eman Alnaji Dareen Hamoudeh
  • 2. 2 Contents  Introduction – Visual Studio 2012  Start Page  Create a New Project  Forms.cs  Solution Explorer  Toolbox  Properties Window  Project Physical Folder  Run the Project
  • 3. 3 Introduction – Visual Studio 2012  Visual Studio 2012 is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging apps (also called applications) written in various .NET programming languages.
  • 5. 5 Create a New Project  Start Page  New Project Or  File  New  Project A Project: is a group of related files, such as the Visual C# code and any images that might make up an app.
  • 6. 6 Create a New Project
  • 7. 7 Create a New Project  Make sure to choose the proper language “Visual C#”.  And from the templates displayed, choose “Windows Forms Applications”  This template will enable you to start your project with the first screen that will be displayed to the users of the resulted application. This form (window) will be filled with controls that can be used by the user.  Give a name of your project, specify its location on your PC, and finally give a name to the solution. For beginners, we use the same name of
  • 8. 8 Create a New Project  A Solution: contains several projects, and it is usually used for large systems.  In this course, we will create only one project in a solution.  Now, Press “OK”
  • 10. 10 Forms.cs  Form1.cs [Design] This window displays the file form1.cs in design mode. In this window you can add the needed controls to the form. Your project may contain several forms that act as the windows of the application.
  • 11. 11 Solution Explorer  Solution Explorer is used to review all files in your project. Mainly, the form1.cs file, references, and any images you include in the project.
  • 12. 12 Toolbox  Toolbox: is a window that contains all the controls and components that you can add and use in a form.  The controls are categorized in several categories.
  • 13. 13 Toolbox  Common Controls: is the most used categories, since it contains the most common controls that you can find in most forms. For example, buttons and textboxes.  To add any control from the toolbox to the form, drag and drop the control to the desired location, or double click on it, and it will be placed in a location automatically selected by the system.
  • 14. 14 Toolbox  This image displays a form after adding a button to it.
  • 15. 15 Properties Window  The Properties window, displays all properties associated to the selected control.  You can see at the top of this window, in the image, that these are the properties of Form1.
  • 16. 16 Properties Window  Here, Form1 is selected (check the selection handlers), so the properties displayed are associated to the form.
  • 17. 17 Properties Window  Here, button1 is selected, so button1 properties are displayed in the window.
  • 18. 18 Properties Window  Here, textBox1 is selected, so textBox1 properties are displayed in the window.  Note that there are some properties are common with the button properties, and others are special for the textbox.
  • 19. 19 Properties Window  You can display the properties of any control, either alphabetically, as in the first image, or categorized as in the second image.
  • 20. 20 Properties Window  Note that each property has a name and a value of a certain data type. For example, property named “Text”, has a string value of “button1”, a property named “TabIndex”, has an integer value of “0” and a property named “Visible” has a boolean value of “True”.
  • 21. 21 Properties Window  The same property window can be used to display the events associated to a control.  The concept of Events will be discussed in Chapter 2.
  • 22. 22 Project Physical Folder  When the project is created, a physical folder is created with the same project name in the selected location, and all files listed in the Solution Explorer, can be found there.
  • 23. 23 Run the Project  Click on “Start” button, at the toolbar in Visual Studio Window, and an execution file will be generated of the project, and it will be executed as displayed in the image.
  • 24. 24 Run the Project  Go to the Project folder, from bin  Debug, you can find the execution file projectname.exe (start.exe), when you double click the file the project will be distributed, even if the Visual Studio IDE is closed.