SlideShare a Scribd company logo
1 of 16
Let’s Start Intro To Windows Apps Using C# Develop Simple Calculator
Out Lines Purpose of this session Dos vs Windows Windows applications concepts Example  (make calculator using win forms app)
Purpose What’s this session for ? For making a calculator using C# False False !!, for What ?!! I will tell you This session for begin using C# to develop our first windows application Purpose Not to make a calculator	 	(Simply it’s nothing) To learn how to make windows  apps 		(I got it)
Dos vs Win Dos Very poor operating system Every thing is text Based on commands Windows The most popular operating system More friendly to user Based on graphical user interfaces (GUIs) Absolutely there is other differences but this what we need right now
Windows Applications Windows apps It’s applications used for windows OS Graphical user interface apps Allows a user to interact visually  Buttons , text-boxes , labels , … Windows forms Used to create the GUIs
Forms Graphical element that appears on your computer's desktopas Dialogs SDI  Window		(single document interface) MDI Window 	(multiple document interface) The place where we can but GUI controls
Controls Windows app as said before consist of  Buttons , labels , text-boxes , … etc. These is called GUI controls GUI controls are objects that can  Display information on the screen Enable users to interact with an app via mouse, keyboard Some other form of input as voice commands
Common Controls Each control has its own Properties & Events Property as: Background color	Event as: Click
Events Event is “Something occur” When we click the mouse this is an event When we type on the keyboard this is an event GUIs are event driven which mean Each event, must have its own handler Handler Method perform a task in response to events
Let’s Start We will develop a calculator
What For ?  What type of calculators user need? for what ? Simple, 		Basic calculations Advanced, 	Complex calculations Custom, 	Custom type of calculations Mix		All of them Simply if you made one you can make all Because its only “idea”
Let’s Program We will make the simple one Simply because there isn’t remaining time It’s the root of all others We will use Visual Studio As IDE Simply because it’s the best We will use C# as PL Simply because it’s the Strongest Now Let’s Program Okay let’s do it
Let’s Think & Imagine Need to get input from the user Can use some buttons to read numbers & operations Can use text-box to show operands, results Convert the input in text box to numbers Can use parse( ) method Store this input in variables for making calculations double fNum , sNum ;  Make operations on the values stored in variables double   result  = fNum ( Operation [+,-,*,/] ) sNum ; Show the final result to user Show it in the text-box
Let’s Code We should now start to code At  this stage we will convert our thinking & imagination into real world application This could be done by writing some steps based on our thinking & imagination
Summary Dos Vs Win Windows Applications Forms (Windows Forms) GUI Controls Events Example on Simple Calculator
Questions ?

More Related Content

Similar to Start Windows Apps C# Simple Calculator

Event driven theory
Event driven theoryEvent driven theory
Event driven theorynickywalters
 
Introducing small basic
Introducing small basicIntroducing small basic
Introducing small basicSara Samol
 
Introducing small basic
Introducing small basicIntroducing small basic
Introducing small basicAn I
 
An introduction to programming
An introduction to programmingAn introduction to programming
An introduction to programmingrprajat007
 
Discrete Event Simulation, CASE tool built using C#
Discrete Event Simulation, CASE tool built using C#Discrete Event Simulation, CASE tool built using C#
Discrete Event Simulation, CASE tool built using C#Ron Perlmuter
 
Data Scenarios 2020: 6 Amazing Transformations
Data Scenarios 2020: 6 Amazing TransformationsData Scenarios 2020: 6 Amazing Transformations
Data Scenarios 2020: 6 Amazing TransformationsSafe Software
 
Cucumber meets iPhone
Cucumber meets iPhoneCucumber meets iPhone
Cucumber meets iPhoneErin Dees
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0Aarti P
 
Application development with Python - Desktop application
Application development with Python - Desktop applicationApplication development with Python - Desktop application
Application development with Python - Desktop applicationBao Long Nguyen Dang
 
Programming of c++
Programming of c++Programming of c++
Programming of c++Ateeq Sindhu
 
iLabs Toolbox Javashare 2008
iLabs Toolbox Javashare 2008iLabs Toolbox Javashare 2008
iLabs Toolbox Javashare 2008rmzdotno
 
Required computer skills program devlopment
Required computer skills program devlopmentRequired computer skills program devlopment
Required computer skills program devlopmentHubert Shanthan
 
structured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsstructured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsOMWOMA JACKSON
 

Similar to Start Windows Apps C# Simple Calculator (20)

Introducing Small Basic.pdf
Introducing Small Basic.pdfIntroducing Small Basic.pdf
Introducing Small Basic.pdf
 
Event driven theory
Event driven theoryEvent driven theory
Event driven theory
 
Moreno Xec
Moreno XecMoreno Xec
Moreno Xec
 
Introducing small basic
Introducing small basicIntroducing small basic
Introducing small basic
 
Slide 01
Slide 01Slide 01
Slide 01
 
Introducing small basic
Introducing small basicIntroducing small basic
Introducing small basic
 
01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx
 
An introduction to programming
An introduction to programmingAn introduction to programming
An introduction to programming
 
Vb.net and .Net Framework
Vb.net and .Net FrameworkVb.net and .Net Framework
Vb.net and .Net Framework
 
Discrete Event Simulation, CASE tool built using C#
Discrete Event Simulation, CASE tool built using C#Discrete Event Simulation, CASE tool built using C#
Discrete Event Simulation, CASE tool built using C#
 
Data Scenarios 2020: 6 Amazing Transformations
Data Scenarios 2020: 6 Amazing TransformationsData Scenarios 2020: 6 Amazing Transformations
Data Scenarios 2020: 6 Amazing Transformations
 
Cucumber meets iPhone
Cucumber meets iPhoneCucumber meets iPhone
Cucumber meets iPhone
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 
Application development with Python - Desktop application
Application development with Python - Desktop applicationApplication development with Python - Desktop application
Application development with Python - Desktop application
 
Programming of c++
Programming of c++Programming of c++
Programming of c++
 
iLabs Toolbox Javashare 2008
iLabs Toolbox Javashare 2008iLabs Toolbox Javashare 2008
iLabs Toolbox Javashare 2008
 
Required computer skills program devlopment
Required computer skills program devlopmentRequired computer skills program devlopment
Required computer skills program devlopment
 
structured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsstructured programming Introduction to c fundamentals
structured programming Introduction to c fundamentals
 
Storyboard prototyping
Storyboard prototypingStoryboard prototyping
Storyboard prototyping
 

More from DevMix

Framework prototype
Framework prototypeFramework prototype
Framework prototypeDevMix
 
Framework prototype
Framework prototypeFramework prototype
Framework prototypeDevMix
 
Devmix algorithm
Devmix algorithmDevmix algorithm
Devmix algorithmDevMix
 
Select your career
Select your careerSelect your career
Select your careerDevMix
 
Devmix algorithm
Devmix algorithmDevmix algorithm
Devmix algorithmDevMix
 
Framework prototype
Framework prototypeFramework prototype
Framework prototypeDevMix
 
New in html5
New in html5New in html5
New in html5DevMix
 
Algorithms
AlgorithmsAlgorithms
AlgorithmsDevMix
 
Intro To DataBase
Intro To DataBaseIntro To DataBase
Intro To DataBaseDevMix
 
OOP in C#
OOP in C#OOP in C#
OOP in C#DevMix
 
Logos samples
Logos samplesLogos samples
Logos samplesDevMix
 
C sharp fundamentals Part I
C sharp fundamentals Part IC sharp fundamentals Part I
C sharp fundamentals Part IDevMix
 
Python
PythonPython
PythonDevMix
 
Making a presentation
Making a presentationMaking a presentation
Making a presentationDevMix
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud ComputingDevMix
 

More from DevMix (15)

Framework prototype
Framework prototypeFramework prototype
Framework prototype
 
Framework prototype
Framework prototypeFramework prototype
Framework prototype
 
Devmix algorithm
Devmix algorithmDevmix algorithm
Devmix algorithm
 
Select your career
Select your careerSelect your career
Select your career
 
Devmix algorithm
Devmix algorithmDevmix algorithm
Devmix algorithm
 
Framework prototype
Framework prototypeFramework prototype
Framework prototype
 
New in html5
New in html5New in html5
New in html5
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Intro To DataBase
Intro To DataBaseIntro To DataBase
Intro To DataBase
 
OOP in C#
OOP in C#OOP in C#
OOP in C#
 
Logos samples
Logos samplesLogos samples
Logos samples
 
C sharp fundamentals Part I
C sharp fundamentals Part IC sharp fundamentals Part I
C sharp fundamentals Part I
 
Python
PythonPython
Python
 
Making a presentation
Making a presentationMaking a presentation
Making a presentation
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 

Recently uploaded

Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
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
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxruthvilladarez
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEaurabinda banchhor
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxElton John Embodo
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
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
 

Recently uploaded (20)

Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
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
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSE
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docx
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
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
 

Start Windows Apps C# Simple Calculator

  • 1. Let’s Start Intro To Windows Apps Using C# Develop Simple Calculator
  • 2. Out Lines Purpose of this session Dos vs Windows Windows applications concepts Example (make calculator using win forms app)
  • 3. Purpose What’s this session for ? For making a calculator using C# False False !!, for What ?!! I will tell you This session for begin using C# to develop our first windows application Purpose Not to make a calculator (Simply it’s nothing) To learn how to make windows apps (I got it)
  • 4. Dos vs Win Dos Very poor operating system Every thing is text Based on commands Windows The most popular operating system More friendly to user Based on graphical user interfaces (GUIs) Absolutely there is other differences but this what we need right now
  • 5. Windows Applications Windows apps It’s applications used for windows OS Graphical user interface apps Allows a user to interact visually Buttons , text-boxes , labels , … Windows forms Used to create the GUIs
  • 6. Forms Graphical element that appears on your computer's desktopas Dialogs SDI Window (single document interface) MDI Window (multiple document interface) The place where we can but GUI controls
  • 7. Controls Windows app as said before consist of Buttons , labels , text-boxes , … etc. These is called GUI controls GUI controls are objects that can Display information on the screen Enable users to interact with an app via mouse, keyboard Some other form of input as voice commands
  • 8. Common Controls Each control has its own Properties & Events Property as: Background color Event as: Click
  • 9. Events Event is “Something occur” When we click the mouse this is an event When we type on the keyboard this is an event GUIs are event driven which mean Each event, must have its own handler Handler Method perform a task in response to events
  • 10. Let’s Start We will develop a calculator
  • 11. What For ? What type of calculators user need? for what ? Simple, Basic calculations Advanced, Complex calculations Custom, Custom type of calculations Mix All of them Simply if you made one you can make all Because its only “idea”
  • 12. Let’s Program We will make the simple one Simply because there isn’t remaining time It’s the root of all others We will use Visual Studio As IDE Simply because it’s the best We will use C# as PL Simply because it’s the Strongest Now Let’s Program Okay let’s do it
  • 13. Let’s Think & Imagine Need to get input from the user Can use some buttons to read numbers & operations Can use text-box to show operands, results Convert the input in text box to numbers Can use parse( ) method Store this input in variables for making calculations double fNum , sNum ; Make operations on the values stored in variables double result = fNum ( Operation [+,-,*,/] ) sNum ; Show the final result to user Show it in the text-box
  • 14. Let’s Code We should now start to code At this stage we will convert our thinking & imagination into real world application This could be done by writing some steps based on our thinking & imagination
  • 15. Summary Dos Vs Win Windows Applications Forms (Windows Forms) GUI Controls Events Example on Simple Calculator