SlideShare una empresa de Scribd logo
1 de 24
Session 5
Slide 1 of 1309/20/13
Dialog Boxes
Slide 2 of 2609/20/13
Module Introduction
+ A dialog box is a special window, which can be used to interact with the user and display
information.
+ It acts as a container that can hold various controls to retrieve information.
+ Dialog boxes are divided into two categories :
- Common dialog boxes are system-defined dialog boxes
- Custom dialog boxes are user-defined dialog boxes.
Slide 3 of 2609/20/13
A dialog box is a window that allows you to collect and display related information using
various controls.
Some of the dialog boxes that you have used in Windows are Save As, Color, Print and
Page Setup.
Introduction to Dialog Boxes
Slide 4 of 2609/20/13
Elements
A dialog box consists of:
• Title bar displaying caption and the close icon
• Instruction text informing what the user should do (optional)
• Content with controls to select or display information
• Action area having buttons and link labels
• Footnote area explaining about the window (optional)
Slide 5 of 2609/20/13
Features
A dialog box is different from forms because of some basic features. These
are:
+ Non-resizable: A dialog box is not resizable and cannot be maximized or
minimized.
+ Usually Modal: A dialog box is usually of modal type. This means that the
user is not allowed to focus on any other window until the dialog box is
closed.
+ Common Set of Buttons and Icons: a dialog box consists of some standard
buttons such as OK and Cancel.It also consists of the Help and Close icons on
its top-right corner.
Slide 6 of 2609/20/13
Modal Dialog Box
There are two types of dialog boxes namely : modal and modeless.
+ A modal dialog box does not allow the user to activate any other window in the application
unless the dialog box is closed.
+ A modeless dialog box allows user to focus and work with the same application without
closing the dialog box.
Slide 7 of 2609/20/13
Common and Custom Dialog Boxes
+ Common dialog boxes are system-defined dialog boxes such as Open, Save and Print.
These dialog boxes are reusable and hence can be used across various applications.
+ Custom dialog boxes are user-defined dialog boxes. These dialog boxes are useful
when the system-defined dialog boxes do not fulfill certain requirements.
Slide 8 of 2609/20/13
"CommonDialog" Class
The CommonDialog class is the base class for all common dialog boxes. This class exists
in the System.Windows.Forms namespace.
Slide 9 of 2609/20/13
"ColorDialog" Component
The ColorDialog component is a dialog box that allows you to select system-defined colors
from the color palette.
Slide 10 of 2609/20/13
"ColorDialog" Class
Slide 11 of 2609/20/13
"FontDialog" Component
The FontDialog component allows you to select different fonts that are installed in the
system.
Slide 12 of 2609/20/13
"FontDialog" Class
Slide 13 of 2609/20/13
"OpenFileDialog" and "SaveFileDialog" Components
The OpenFileDialog and SaveFileDialog are the most commonly used dialog boxes in
applications. The OpenFileDialog component allows you to open a file and the SaveFileDialog
component allows you to save a file.
Slide 14 of 26
09/20/13
"OpenFileDialog" Class
Slide 15 of 2609/20/13
"SaveFileDialog" Class
Slide 16 of 2609/20/13
"PageSetupDialog" Component
The PageSetupDialog component is a system-defined dialog box, which allows the user to
set the page layout for printing. It provides various options such as the border and margin
adjustments, headers and footers, and portrait and landscape orientation for the page to be
printed.
Slide 17 of 2609/20/13
"PageSetupDialog" Class
Slide 18 of 2609/20/13
"PrintDialog" Component
The PrintDialog component is a system-defined dialog box that allows you to print the
documents.
Slide 19 of 2609/20/13
"PrintDialog" Class
Slide 20 of 2609/20/13
"PrintPreviewDialog" Control
The PrintPreviewDialog control is used to display the way a document will appear when
printed.
Slide 21 of 2609/20/13
"PrintPreviewDialog" Class
Slide 22 of 2609/20/13
User-Defined Dialog Boxes
A system-defined dialog box does not always fulfill the requirements of the developers and
users. In such cases, a developer needs to create custom dialog boxes to fulfill the
requirements. To do so, you can convert a form into a user-defined dialog box.
To create a user-defined dialog box:
+ The FormBorderStyle property of the form should be set to FixedDiaiog.
+ The ControlBox, MinimizeBox, and MaximizeBox properties should be set to False.
+ The form must provide the OK and Cancel buttons to either close the dialog box or cancel
any tasks within the dialog box.
+ The AcceptButton property of the form should be used to set the OK button.
+ The CancelButton property of the form should be used to set the Cancel button.
Slide 23 of 2609/20/13
Slide 24 of 2609/20/13
Retrieving Information from a Dialog Box
The form that displays the dialog box can retrieve the result of that dialog box by referencing
its DialogResult property.
"DialogResult" Enumeration

Más contenido relacionado

La actualidad más candente

Access advanced tutorial
Access advanced tutorialAccess advanced tutorial
Access advanced tutorialcatacata1976
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notesart02
 
Lotusnotesv85referenceguide
Lotusnotesv85referenceguideLotusnotesv85referenceguide
Lotusnotesv85referenceguideKarthick Bala
 
Gl13 m7-c3-presentation
Gl13 m7-c3-presentationGl13 m7-c3-presentation
Gl13 m7-c3-presentationTracie King
 
Customizing Forms
Customizing FormsCustomizing Forms
Customizing FormsEMAINT
 
Buttons In .net Visual Basic
Buttons In .net Visual BasicButtons In .net Visual Basic
Buttons In .net Visual Basicmanish maurya
 
Basic knowledge of computers
Basic knowledge of computersBasic knowledge of computers
Basic knowledge of computersAkash Grover
 
Common dialog control
Common dialog controlCommon dialog control
Common dialog controlSoumya Vijoy
 
Bigcommerce template guide_1.1
Bigcommerce template guide_1.1Bigcommerce template guide_1.1
Bigcommerce template guide_1.1Daime628
 
2 1 working in an end note library
2  1 working in an end note library 2  1 working in an end note library
2 1 working in an end note library Abdelmonim Osman
 
User interface introduction openbravo
User interface introduction   openbravoUser interface introduction   openbravo
User interface introduction openbravoAbul Khayer
 
SJI6510_Authoring _With_Structured_FrameMaker
SJI6510_Authoring _With_Structured_FrameMakerSJI6510_Authoring _With_Structured_FrameMaker
SJI6510_Authoring _With_Structured_FrameMakerW. Ben Rhodes, M.A.
 
Lesson 3 getting familiar with xp
Lesson 3   getting familiar with xpLesson 3   getting familiar with xp
Lesson 3 getting familiar with xpguevarra_2000
 

La actualidad más candente (17)

Access advanced tutorial
Access advanced tutorialAccess advanced tutorial
Access advanced tutorial
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notes
 
Lotusnotesv85referenceguide
Lotusnotesv85referenceguideLotusnotesv85referenceguide
Lotusnotesv85referenceguide
 
MS ACCESS (REPORT)
MS ACCESS (REPORT)MS ACCESS (REPORT)
MS ACCESS (REPORT)
 
Unit B Windows 7
Unit B Windows 7Unit B Windows 7
Unit B Windows 7
 
Gl13 m7-c3-presentation
Gl13 m7-c3-presentationGl13 m7-c3-presentation
Gl13 m7-c3-presentation
 
Treeview listview
Treeview listviewTreeview listview
Treeview listview
 
M s access
M s accessM s access
M s access
 
Customizing Forms
Customizing FormsCustomizing Forms
Customizing Forms
 
Buttons In .net Visual Basic
Buttons In .net Visual BasicButtons In .net Visual Basic
Buttons In .net Visual Basic
 
Basic knowledge of computers
Basic knowledge of computersBasic knowledge of computers
Basic knowledge of computers
 
Common dialog control
Common dialog controlCommon dialog control
Common dialog control
 
Bigcommerce template guide_1.1
Bigcommerce template guide_1.1Bigcommerce template guide_1.1
Bigcommerce template guide_1.1
 
2 1 working in an end note library
2  1 working in an end note library 2  1 working in an end note library
2 1 working in an end note library
 
User interface introduction openbravo
User interface introduction   openbravoUser interface introduction   openbravo
User interface introduction openbravo
 
SJI6510_Authoring _With_Structured_FrameMaker
SJI6510_Authoring _With_Structured_FrameMakerSJI6510_Authoring _With_Structured_FrameMaker
SJI6510_Authoring _With_Structured_FrameMaker
 
Lesson 3 getting familiar with xp
Lesson 3   getting familiar with xpLesson 3   getting familiar with xp
Lesson 3 getting familiar with xp
 

Destacado

Picture toolbar
Picture toolbarPicture toolbar
Picture toolbarAnn Alcid
 
Working with dialog box and working with web page
Working with dialog box and working with web pageWorking with dialog box and working with web page
Working with dialog box and working with web pageAnn Alcid
 
Notepad
NotepadNotepad
NotepadLiz
 
Search Engine Training Institute in Ambala!Batra Computer Centre
Search Engine Training Institute in Ambala!Batra Computer CentreSearch Engine Training Institute in Ambala!Batra Computer Centre
Search Engine Training Institute in Ambala!Batra Computer Centrejatin batra
 
Internet features (2nd topic)
Internet features (2nd topic)Internet features (2nd topic)
Internet features (2nd topic)Anish Thomas
 
Basic shortcut keys of computer or PC
Basic shortcut keys of computer or PCBasic shortcut keys of computer or PC
Basic shortcut keys of computer or PCshashikant pabari
 
Features Of The Internet
Features Of The InternetFeatures Of The Internet
Features Of The Internetkimromero
 
Full Presentation on Notepad
Full Presentation on NotepadFull Presentation on Notepad
Full Presentation on Notepadmanish chaturvedi
 
Notepad Presentation Mca
Notepad Presentation McaNotepad Presentation Mca
Notepad Presentation Mcahamzaghanchi
 
Ms paint tutorial
Ms paint tutorialMs paint tutorial
Ms paint tutorialamysuesue
 
Microsoft Paint Powerpoint
Microsoft Paint PowerpointMicrosoft Paint Powerpoint
Microsoft Paint Powerpointyusivanach
 

Destacado (20)

Customize word background
Customize word backgroundCustomize word background
Customize word background
 
Picture toolbar
Picture toolbarPicture toolbar
Picture toolbar
 
Working with dialog box and working with web page
Working with dialog box and working with web pageWorking with dialog box and working with web page
Working with dialog box and working with web page
 
Shortcuts (Computer commannds)
Shortcuts (Computer commannds)Shortcuts (Computer commannds)
Shortcuts (Computer commannds)
 
Computer shortcuts
Computer shortcutsComputer shortcuts
Computer shortcuts
 
Notepad
NotepadNotepad
Notepad
 
Presentacion
Presentacion Presentacion
Presentacion
 
WORDPAD
WORDPADWORDPAD
WORDPAD
 
Search Engine Training Institute in Ambala!Batra Computer Centre
Search Engine Training Institute in Ambala!Batra Computer CentreSearch Engine Training Institute in Ambala!Batra Computer Centre
Search Engine Training Institute in Ambala!Batra Computer Centre
 
Internet features (2nd topic)
Internet features (2nd topic)Internet features (2nd topic)
Internet features (2nd topic)
 
Basic shortcut keys of computer or PC
Basic shortcut keys of computer or PCBasic shortcut keys of computer or PC
Basic shortcut keys of computer or PC
 
Features Of The Internet
Features Of The InternetFeatures Of The Internet
Features Of The Internet
 
how the internet works
how the internet workshow the internet works
how the internet works
 
Full Presentation on Notepad
Full Presentation on NotepadFull Presentation on Notepad
Full Presentation on Notepad
 
Notepad Presentation Mca
Notepad Presentation McaNotepad Presentation Mca
Notepad Presentation Mca
 
Notepad
NotepadNotepad
Notepad
 
Ms Paint
Ms PaintMs Paint
Ms Paint
 
Word pad
Word padWord pad
Word pad
 
Ms paint tutorial
Ms paint tutorialMs paint tutorial
Ms paint tutorial
 
Microsoft Paint Powerpoint
Microsoft Paint PowerpointMicrosoft Paint Powerpoint
Microsoft Paint Powerpoint
 

Similar a Session 5 Bai 5 ve winform

Microsoft Power Point
Microsoft Power PointMicrosoft Power Point
Microsoft Power PointSarhad Baez
 
Visual programming is a type of programming
Visual programming is a type of programmingVisual programming is a type of programming
Visual programming is a type of programmingsanaiftikhar23
 
User Interface Design-Module 4 Windows
User Interface Design-Module 4  WindowsUser Interface Design-Module 4  Windows
User Interface Design-Module 4 WindowsbrindaN
 
Auto cad plant-3d
Auto cad plant-3dAuto cad plant-3d
Auto cad plant-3dtareaspp27
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0sanket1996
 
From Design to UML to Working Wireframe
From Design to UML to Working WireframeFrom Design to UML to Working Wireframe
From Design to UML to Working WireframeUX Antwerp Meetup
 
control structure in visual basic
control structure in visual basic control structure in visual basic
control structure in visual basic classall
 
en_GettingStartedInMicroStation.pdf
en_GettingStartedInMicroStation.pdfen_GettingStartedInMicroStation.pdf
en_GettingStartedInMicroStation.pdfArielAlejandroLander
 
SolidWorks Advanced Customization Techniques
SolidWorks Advanced Customization TechniquesSolidWorks Advanced Customization Techniques
SolidWorks Advanced Customization Techniquesfcsuper
 
Visual basic concepts
Visual basic conceptsVisual basic concepts
Visual basic conceptsmelody77776
 
VB6_INTRODUCTION.ppt
VB6_INTRODUCTION.pptVB6_INTRODUCTION.ppt
VB6_INTRODUCTION.pptBhuvanaR13
 
LECTURE 12 WINDOWS FORMS PART 2.pptx
LECTURE 12 WINDOWS FORMS PART 2.pptxLECTURE 12 WINDOWS FORMS PART 2.pptx
LECTURE 12 WINDOWS FORMS PART 2.pptxAOmaAli
 

Similar a Session 5 Bai 5 ve winform (20)

Microsoft Power Point
Microsoft Power PointMicrosoft Power Point
Microsoft Power Point
 
Visual programming is a type of programming
Visual programming is a type of programmingVisual programming is a type of programming
Visual programming is a type of programming
 
Vb.net ide
Vb.net ideVb.net ide
Vb.net ide
 
User Interface Design-Module 4 Windows
User Interface Design-Module 4  WindowsUser Interface Design-Module 4  Windows
User Interface Design-Module 4 Windows
 
Auto cad plant-3d
Auto cad plant-3dAuto cad plant-3d
Auto cad plant-3d
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
Intake 38 9
Intake 38 9Intake 38 9
Intake 38 9
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
UID_Module 4.pptx
UID_Module 4.pptxUID_Module 4.pptx
UID_Module 4.pptx
 
From Design to UML to Working Wireframe
From Design to UML to Working WireframeFrom Design to UML to Working Wireframe
From Design to UML to Working Wireframe
 
control structure in visual basic
control structure in visual basic control structure in visual basic
control structure in visual basic
 
en_GettingStartedInMicroStation.pdf
en_GettingStartedInMicroStation.pdfen_GettingStartedInMicroStation.pdf
en_GettingStartedInMicroStation.pdf
 
Intake 37 9
Intake 37 9Intake 37 9
Intake 37 9
 
Dw cs3-introduction
Dw cs3-introductionDw cs3-introduction
Dw cs3-introduction
 
SolidWorks Advanced Customization Techniques
SolidWorks Advanced Customization TechniquesSolidWorks Advanced Customization Techniques
SolidWorks Advanced Customization Techniques
 
Visual basic concepts
Visual basic conceptsVisual basic concepts
Visual basic concepts
 
VB6_INTRODUCTION.ppt
VB6_INTRODUCTION.pptVB6_INTRODUCTION.ppt
VB6_INTRODUCTION.ppt
 
Framemaker 1
Framemaker 1Framemaker 1
Framemaker 1
 
Windows
WindowsWindows
Windows
 
LECTURE 12 WINDOWS FORMS PART 2.pptx
LECTURE 12 WINDOWS FORMS PART 2.pptxLECTURE 12 WINDOWS FORMS PART 2.pptx
LECTURE 12 WINDOWS FORMS PART 2.pptx
 

Más de mrtom16071980

Bai giang-ms-excel-2010
Bai giang-ms-excel-2010Bai giang-ms-excel-2010
Bai giang-ms-excel-2010mrtom16071980
 
Session 8 Bai 8 ve winform
Session 8 Bai 8 ve winformSession 8 Bai 8 ve winform
Session 8 Bai 8 ve winformmrtom16071980
 
Session 6 Bai 6 ve winform
Session 6 Bai 6 ve winformSession 6 Bai 6 ve winform
Session 6 Bai 6 ve winformmrtom16071980
 
Session 4 Bai 4 ve winform
Session 4 Bai 4 ve winformSession 4 Bai 4 ve winform
Session 4 Bai 4 ve winformmrtom16071980
 
Session 3 Bai 3 ve winform
Session 3 Bai 3 ve winformSession 3 Bai 3 ve winform
Session 3 Bai 3 ve winformmrtom16071980
 
Session 2 Bai 2 ve winform
Session 2 Bai 2 ve winformSession 2 Bai 2 ve winform
Session 2 Bai 2 ve winformmrtom16071980
 
Session 1. Bai 1 ve winform
Session 1. Bai 1 ve winformSession 1. Bai 1 ve winform
Session 1. Bai 1 ve winformmrtom16071980
 
Session 7 Bai 7 ve winform
Session 7 Bai 7 ve winformSession 7 Bai 7 ve winform
Session 7 Bai 7 ve winformmrtom16071980
 

Más de mrtom16071980 (10)

Bai giang-ms-excel-2010
Bai giang-ms-excel-2010Bai giang-ms-excel-2010
Bai giang-ms-excel-2010
 
7314 l10 pwerpoint
7314 l10 pwerpoint7314 l10 pwerpoint
7314 l10 pwerpoint
 
hoc ve xml
hoc ve xmlhoc ve xml
hoc ve xml
 
Session 8 Bai 8 ve winform
Session 8 Bai 8 ve winformSession 8 Bai 8 ve winform
Session 8 Bai 8 ve winform
 
Session 6 Bai 6 ve winform
Session 6 Bai 6 ve winformSession 6 Bai 6 ve winform
Session 6 Bai 6 ve winform
 
Session 4 Bai 4 ve winform
Session 4 Bai 4 ve winformSession 4 Bai 4 ve winform
Session 4 Bai 4 ve winform
 
Session 3 Bai 3 ve winform
Session 3 Bai 3 ve winformSession 3 Bai 3 ve winform
Session 3 Bai 3 ve winform
 
Session 2 Bai 2 ve winform
Session 2 Bai 2 ve winformSession 2 Bai 2 ve winform
Session 2 Bai 2 ve winform
 
Session 1. Bai 1 ve winform
Session 1. Bai 1 ve winformSession 1. Bai 1 ve winform
Session 1. Bai 1 ve winform
 
Session 7 Bai 7 ve winform
Session 7 Bai 7 ve winformSession 7 Bai 7 ve winform
Session 7 Bai 7 ve winform
 

Último

A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 

Último (20)

A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

Session 5 Bai 5 ve winform

  • 1. Session 5 Slide 1 of 1309/20/13 Dialog Boxes
  • 2. Slide 2 of 2609/20/13 Module Introduction + A dialog box is a special window, which can be used to interact with the user and display information. + It acts as a container that can hold various controls to retrieve information. + Dialog boxes are divided into two categories : - Common dialog boxes are system-defined dialog boxes - Custom dialog boxes are user-defined dialog boxes.
  • 3. Slide 3 of 2609/20/13 A dialog box is a window that allows you to collect and display related information using various controls. Some of the dialog boxes that you have used in Windows are Save As, Color, Print and Page Setup. Introduction to Dialog Boxes
  • 4. Slide 4 of 2609/20/13 Elements A dialog box consists of: • Title bar displaying caption and the close icon • Instruction text informing what the user should do (optional) • Content with controls to select or display information • Action area having buttons and link labels • Footnote area explaining about the window (optional)
  • 5. Slide 5 of 2609/20/13 Features A dialog box is different from forms because of some basic features. These are: + Non-resizable: A dialog box is not resizable and cannot be maximized or minimized. + Usually Modal: A dialog box is usually of modal type. This means that the user is not allowed to focus on any other window until the dialog box is closed. + Common Set of Buttons and Icons: a dialog box consists of some standard buttons such as OK and Cancel.It also consists of the Help and Close icons on its top-right corner.
  • 6. Slide 6 of 2609/20/13 Modal Dialog Box There are two types of dialog boxes namely : modal and modeless. + A modal dialog box does not allow the user to activate any other window in the application unless the dialog box is closed. + A modeless dialog box allows user to focus and work with the same application without closing the dialog box.
  • 7. Slide 7 of 2609/20/13 Common and Custom Dialog Boxes + Common dialog boxes are system-defined dialog boxes such as Open, Save and Print. These dialog boxes are reusable and hence can be used across various applications. + Custom dialog boxes are user-defined dialog boxes. These dialog boxes are useful when the system-defined dialog boxes do not fulfill certain requirements.
  • 8. Slide 8 of 2609/20/13 "CommonDialog" Class The CommonDialog class is the base class for all common dialog boxes. This class exists in the System.Windows.Forms namespace.
  • 9. Slide 9 of 2609/20/13 "ColorDialog" Component The ColorDialog component is a dialog box that allows you to select system-defined colors from the color palette.
  • 10. Slide 10 of 2609/20/13 "ColorDialog" Class
  • 11. Slide 11 of 2609/20/13 "FontDialog" Component The FontDialog component allows you to select different fonts that are installed in the system.
  • 12. Slide 12 of 2609/20/13 "FontDialog" Class
  • 13. Slide 13 of 2609/20/13 "OpenFileDialog" and "SaveFileDialog" Components The OpenFileDialog and SaveFileDialog are the most commonly used dialog boxes in applications. The OpenFileDialog component allows you to open a file and the SaveFileDialog component allows you to save a file.
  • 14. Slide 14 of 26 09/20/13 "OpenFileDialog" Class
  • 15. Slide 15 of 2609/20/13 "SaveFileDialog" Class
  • 16. Slide 16 of 2609/20/13 "PageSetupDialog" Component The PageSetupDialog component is a system-defined dialog box, which allows the user to set the page layout for printing. It provides various options such as the border and margin adjustments, headers and footers, and portrait and landscape orientation for the page to be printed.
  • 17. Slide 17 of 2609/20/13 "PageSetupDialog" Class
  • 18. Slide 18 of 2609/20/13 "PrintDialog" Component The PrintDialog component is a system-defined dialog box that allows you to print the documents.
  • 19. Slide 19 of 2609/20/13 "PrintDialog" Class
  • 20. Slide 20 of 2609/20/13 "PrintPreviewDialog" Control The PrintPreviewDialog control is used to display the way a document will appear when printed.
  • 21. Slide 21 of 2609/20/13 "PrintPreviewDialog" Class
  • 22. Slide 22 of 2609/20/13 User-Defined Dialog Boxes A system-defined dialog box does not always fulfill the requirements of the developers and users. In such cases, a developer needs to create custom dialog boxes to fulfill the requirements. To do so, you can convert a form into a user-defined dialog box. To create a user-defined dialog box: + The FormBorderStyle property of the form should be set to FixedDiaiog. + The ControlBox, MinimizeBox, and MaximizeBox properties should be set to False. + The form must provide the OK and Cancel buttons to either close the dialog box or cancel any tasks within the dialog box. + The AcceptButton property of the form should be used to set the OK button. + The CancelButton property of the form should be used to set the Cancel button.
  • 23. Slide 23 of 2609/20/13
  • 24. Slide 24 of 2609/20/13 Retrieving Information from a Dialog Box The form that displays the dialog box can retrieve the result of that dialog box by referencing its DialogResult property. "DialogResult" Enumeration