SlideShare une entreprise Scribd logo
1  sur  50
Window Controls in C#.Net
MessageBox Class
MessageBox Class
 The System.Windows.Forms.MessageBox is a static
class that is used to show message boxes for
prompting, confirmation and warning users.
 To show a message box, simply call
the Show method of the MessageBox class.
 The simplest version of the Show method is the one
that accepts a string message as an argument.
 The table below shows the members of
the MessageBoxButtons enumeration.
Member Buttons Shown
AbortRetryIgnore Abort, Retry, Ignore
OK OK
OKCancel OK, Cancel
RetryCancel Retry, Cancel
YesNo Yes, No
YesNoCancel Yes, No, Cancel
Form In C# window Application
Windows Form
 Windows Forms (or simply forms) are the windows
you see in a Windows Application. You can create
multiple forms in a single application.
 Each form inherits the properties and methods of
the System.Windows.Forms.Form class.
 The namespaceSystem.Windows.Forms contains
components you will need for creating forms and
controls.
Button Control
Button control
 The Button
control (System.Windows.Forms.Button) is
commonly used to execute commands when it is
clicked.
 When a button is clicked, you specify codes that
will be used.
 Buttons are typically used to confirm or cancel an
action, to perform different actions, and to open
some more dialogs.
Label control
Label & LinkLabel control
 The Label control (System.Windows.Forms.Label) is
used to add text to a form that can be used to show
messages, or add labels to identify what other
controls' functionality is. Drag a label control from the
toolbox to the form.
 By default, it will have an initial text.
 A LinkLabel control is a label control that can
display a hyperlink.
TextBox Control
Textbox control
 A Textbox control is used to display, or accept as
input, a single line of text.
 This control has additional functionality that is not
found in the standard Windows text box control,
including multiline editing and password
character masking.
RichTextBox Control
RichTextBox Control
 The RichTextBox control (System.Windows.Forms.
RichTextBox) is similar to a TextBox control, but it
allows you to format different parts of the text inside
it.
 The TextBox control is typically used to accept text
input from the user while the RichTextBox control is
used to show formatted text and save it in Rich Text
Format (RTF).
CheckBox And RadioButton
Control
CheckBox And RadioButton
Control
 CheckBox
 Checkboxes allow the user to make multiple
selections from a number of options.
 CheckBox to give the user an option, such as
true/false or yes/no.
 You can click a check box to select it and click it
again to deselect it.
 RadioButton
 A radio button or option button enables the user to
select a single option from a group of choices when
paired with other RadioButton controls.
 When a user clicks on a radio button, it becomes
checked, and all other radio buttons with same
group become unchecked
NumericUpDown ,PictureBox
,ProgressBar,ComboBox
,MonthlyCalendar And DateTimePicker
Control
NumericUpDown
 The NumericUpDown control is typically used to
get numeric inputs and automatically restricts user
for giving invalid non-numeric values.
 The NumericUpDown control appears like
a TextBox control, but there are arrow buttons on
its right or left side that is used to increment or
decrement the value of the control.Control Property Value
button1 Name buttonCalculate
numericUpDown1 Name numericUpDownPrice
Decimal 2
Increment 0.50
Maximum 10000
numericUpDown2 Name numericUpDownQuantity
Maximum 100
PictureBox Control
 The Windows Forms PictureBox control is used to
display images in bitmap, GIF , icon , or JPEG
formats.
ComboBox control
 The ComboBox control is another way of allowing
a user to choose from a set of options.
DateTimePicker Control
 DateTimePicker is ideal for choosing a single date
and/or time value and requires the same amount
of space as an ordinary drop-down list box.
 When the user clicks the drop-down button, a
month calendar appears.
 The operation of the control from this point is
exactly the same as the MonthCalendar control.
MonthCalendar control
 The MonthCalendar control presents an intuitive
graphical interface for users to view and set date
information
ProgressBar Control
WebBrowser Control
Web Browser Control
 WebBrowser control allows developers to build Web
browsing capability within Windows Forms
applications.
Web Browser Output
Dialog Controls
 ColorDialog Control
 FontDialog Control
 FolderBrowserDialog Control
 OpenFileDialog Control
 SaveFileDialog control
The ColorDialog Control
 The ColorDialog (System.Windows.Forms.ColorDialog
) is used when you want to pick different colors.
 For example, when you want to pick a color of the font
or a background color for the form, you can use
the ColorDialog control
 The following are some of the useful properties of
the ColorDialog control.
Properties Description
AllowFullOpen Specifies whether the user can choose
custom colors.
Color The color that the user selected.
CustomColors A collection of custom colors picked by the
user.
FullOpen Specifies whether the part used to pick
custom colors are automatically open.
Changing Form Background Color
Changing Form Font Color
The FontDialog Control
 The FontDialog control
(System.Windows.Forms.FontDialog) is a handy
control for selecting different kinds of font and font-
related properties.Properties Description
Color The selected color of the
user.
Font The resulting font
constructed using the font
dialog.
MaxSize The maximum size the
dialog can provide.
MinSize The minimum size the
dialog can provide.
ShowApply Indicates whether to show
the Apply button.
ShowColor Indicates whether to show
the Color option.
ShowEffects Indicates whether to show
the Effects option.
The FolderBrowserDialog Control
 Folder Browser Dialog is a .NET control that
prompts user to browse and select a folder
location. Using FolderBroserDialog user can only
select folders and not files.
 The FolderBrowserDialog control
(System.Windows.Forms.FolderBrowserDialog)
allows you to browse for a directory in your system.
OpenFileDialog Control
 An OpenFileDialog control is used to browse and
select a file on a computer.
SaveFileDialog control
 A SaveFileDialog control is used to save a file using
Windows Save File Dialog.
Windowforms controls c#

Contenu connexe

Tendances

Exception Handling in C#
Exception Handling in C#Exception Handling in C#
Exception Handling in C#Abid Kohistani
 
Lecture 1 introduction to vb.net
Lecture 1   introduction to vb.netLecture 1   introduction to vb.net
Lecture 1 introduction to vb.netMUKALU STEVEN
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programmingRoger Argarin
 
Dialog box in vb6
Dialog box in vb6Dialog box in vb6
Dialog box in vb6Saroj Patel
 
JavaScript - Chapter 12 - Document Object Model
  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object ModelWebStackAcademy
 
Group By, Order By, and Aliases in SQL
Group By, Order By, and Aliases in SQLGroup By, Order By, and Aliases in SQL
Group By, Order By, and Aliases in SQLMSB Academy
 
Operators used in vb.net
Operators used in vb.netOperators used in vb.net
Operators used in vb.netJaya Kumari
 
Ch 3 event driven programming
Ch 3 event driven programmingCh 3 event driven programming
Ch 3 event driven programmingChaffey College
 
STRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESSTRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESVENNILAV6
 
VB.NET:An introduction to Namespaces in .NET framework
VB.NET:An introduction to  Namespaces in .NET frameworkVB.NET:An introduction to  Namespaces in .NET framework
VB.NET:An introduction to Namespaces in .NET frameworkRicha Handa
 

Tendances (20)

Exception Handling in C#
Exception Handling in C#Exception Handling in C#
Exception Handling in C#
 
C# Arrays
C# ArraysC# Arrays
C# Arrays
 
Lecture 1 introduction to vb.net
Lecture 1   introduction to vb.netLecture 1   introduction to vb.net
Lecture 1 introduction to vb.net
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
 
Dialog box in vb6
Dialog box in vb6Dialog box in vb6
Dialog box in vb6
 
html-table
html-tablehtml-table
html-table
 
JavaScript - Chapter 12 - Document Object Model
  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object Model
 
Group By, Order By, and Aliases in SQL
Group By, Order By, and Aliases in SQLGroup By, Order By, and Aliases in SQL
Group By, Order By, and Aliases in SQL
 
Html frames
Html framesHtml frames
Html frames
 
Operators used in vb.net
Operators used in vb.netOperators used in vb.net
Operators used in vb.net
 
Toolbar
ToolbarToolbar
Toolbar
 
Css selectors
Css selectorsCss selectors
Css selectors
 
Html forms
Html formsHtml forms
Html forms
 
Html form tag
Html form tagHtml form tag
Html form tag
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with ExamplesDML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
 
Ch 3 event driven programming
Ch 3 event driven programmingCh 3 event driven programming
Ch 3 event driven programming
 
STRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESSTRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIES
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
VB.NET:An introduction to Namespaces in .NET framework
VB.NET:An introduction to  Namespaces in .NET frameworkVB.NET:An introduction to  Namespaces in .NET framework
VB.NET:An introduction to Namespaces in .NET framework
 
Array in c#
Array in c#Array in c#
Array in c#
 

En vedette

c#.Net Windows application
c#.Net Windows application c#.Net Windows application
c#.Net Windows application veera
 
Windows Forms For Beginners Part - 1
Windows Forms For Beginners Part - 1Windows Forms For Beginners Part - 1
Windows Forms For Beginners Part - 1Bhushan Mulmule
 
Windows Forms For Beginners Part - 4
Windows Forms For Beginners Part - 4Windows Forms For Beginners Part - 4
Windows Forms For Beginners Part - 4Bhushan Mulmule
 
Introduction To Dotnet
Introduction To DotnetIntroduction To Dotnet
Introduction To DotnetSAMIR BHOGAYTA
 
Windows Forms For Beginners Part - 2
Windows Forms For Beginners Part - 2Windows Forms For Beginners Part - 2
Windows Forms For Beginners Part - 2Bhushan Mulmule
 
Windows Forms For Beginners Part - 3
Windows Forms For Beginners Part - 3Windows Forms For Beginners Part - 3
Windows Forms For Beginners Part - 3Bhushan Mulmule
 
Industrial Training in Window Application
Industrial Training in Window ApplicationIndustrial Training in Window Application
Industrial Training in Window ApplicationArcadian Learning
 
MySQL Stored Procedures: Building High Performance Web Applications
MySQL Stored Procedures: Building High Performance Web ApplicationsMySQL Stored Procedures: Building High Performance Web Applications
MySQL Stored Procedures: Building High Performance Web ApplicationsOSSCube
 
Intro To TSQL - Unit 5
Intro To TSQL - Unit 5Intro To TSQL - Unit 5
Intro To TSQL - Unit 5iccma
 
กำหนดค่า Link label
กำหนดค่า Link labelกำหนดค่า Link label
กำหนดค่า Link labelNaruemon Soonthong
 
Intro To TSQL - Unit 1
Intro To TSQL - Unit 1Intro To TSQL - Unit 1
Intro To TSQL - Unit 1iccma
 
Setup Project in Visual Studio C#
Setup Project in Visual Studio C#Setup Project in Visual Studio C#
Setup Project in Visual Studio C#Naruemon Soonthong
 
Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Bhushan Mulmule
 
Socket programming in C#
Socket programming in C#Socket programming in C#
Socket programming in C#Nang Luc Vu
 
Csphtp1 12
Csphtp1 12Csphtp1 12
Csphtp1 12HUST
 

En vedette (20)

c#.Net Windows application
c#.Net Windows application c#.Net Windows application
c#.Net Windows application
 
Windows Forms For Beginners Part - 1
Windows Forms For Beginners Part - 1Windows Forms For Beginners Part - 1
Windows Forms For Beginners Part - 1
 
Windows Forms For Beginners Part - 4
Windows Forms For Beginners Part - 4Windows Forms For Beginners Part - 4
Windows Forms For Beginners Part - 4
 
Introduction To Dotnet
Introduction To DotnetIntroduction To Dotnet
Introduction To Dotnet
 
Windows Forms For Beginners Part - 2
Windows Forms For Beginners Part - 2Windows Forms For Beginners Part - 2
Windows Forms For Beginners Part - 2
 
Windows Forms For Beginners Part - 3
Windows Forms For Beginners Part - 3Windows Forms For Beginners Part - 3
Windows Forms For Beginners Part - 3
 
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
Chapter 2  grouping,scalar and aggergate functions,joins   inner join,outer joinChapter 2  grouping,scalar and aggergate functions,joins   inner join,outer join
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
 
Industrial Training in Window Application
Industrial Training in Window ApplicationIndustrial Training in Window Application
Industrial Training in Window Application
 
MySQL Stored Procedures: Building High Performance Web Applications
MySQL Stored Procedures: Building High Performance Web ApplicationsMySQL Stored Procedures: Building High Performance Web Applications
MySQL Stored Procedures: Building High Performance Web Applications
 
Index_2
Index_2Index_2
Index_2
 
Intro To TSQL - Unit 5
Intro To TSQL - Unit 5Intro To TSQL - Unit 5
Intro To TSQL - Unit 5
 
กำหนดค่า Link label
กำหนดค่า Link labelกำหนดค่า Link label
กำหนดค่า Link label
 
Intro To TSQL - Unit 1
Intro To TSQL - Unit 1Intro To TSQL - Unit 1
Intro To TSQL - Unit 1
 
Setup Project in Visual Studio C#
Setup Project in Visual Studio C#Setup Project in Visual Studio C#
Setup Project in Visual Studio C#
 
Visual C# 2010
Visual C# 2010Visual C# 2010
Visual C# 2010
 
Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5
 
Intro.net
Intro.netIntro.net
Intro.net
 
Socket programming in C#
Socket programming in C#Socket programming in C#
Socket programming in C#
 
12 gui concepts 1
12 gui concepts 112 gui concepts 1
12 gui concepts 1
 
Csphtp1 12
Csphtp1 12Csphtp1 12
Csphtp1 12
 

Similaire à Windowforms controls c#

Similaire à Windowforms controls c# (20)

4.7.14&17.7.14&23.6.15&10.9.15
4.7.14&17.7.14&23.6.15&10.9.154.7.14&17.7.14&23.6.15&10.9.15
4.7.14&17.7.14&23.6.15&10.9.15
 
Controls events
Controls eventsControls events
Controls events
 
Unit2
Unit2Unit2
Unit2
 
Chapter 02
Chapter 02Chapter 02
Chapter 02
 
Spf chapter 03 WinForm
Spf chapter 03 WinFormSpf chapter 03 WinForm
Spf chapter 03 WinForm
 
VB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdfVB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdf
 
VB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdfVB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdf
 
Notes windows form controls gui applications
Notes windows form controls   gui applicationsNotes windows form controls   gui applications
Notes windows form controls gui applications
 
Maliram poonia project
Maliram poonia projectMaliram poonia project
Maliram poonia project
 
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAMPROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
 
Vs c# lecture1
Vs c# lecture1Vs c# lecture1
Vs c# lecture1
 
Vb
VbVb
Vb
 
Vp lecture1 ararat
Vp lecture1 araratVp lecture1 ararat
Vp lecture1 ararat
 
Visual basic
Visual basicVisual basic
Visual basic
 
Visual studio.net
Visual studio.netVisual studio.net
Visual studio.net
 
Visual Basic.pptx
Visual Basic.pptxVisual Basic.pptx
Visual Basic.pptx
 
Graphical User Interface (GUI)
Graphical User Interface (GUI)Graphical User Interface (GUI)
Graphical User Interface (GUI)
 
Ajp notes-chapter-01
Ajp notes-chapter-01Ajp notes-chapter-01
Ajp notes-chapter-01
 
Unit IV-Checkboxes and Radio Buttons in VB.Net in VB.NET
Unit IV-Checkboxes    and   Radio Buttons in VB.Net in VB.NET Unit IV-Checkboxes    and   Radio Buttons in VB.Net in VB.NET
Unit IV-Checkboxes and Radio Buttons in VB.Net in VB.NET
 
Ajp notes-chapter-01
Ajp notes-chapter-01Ajp notes-chapter-01
Ajp notes-chapter-01
 

Dernier

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 

Dernier (20)

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 

Windowforms controls c#

  • 2.
  • 4. MessageBox Class  The System.Windows.Forms.MessageBox is a static class that is used to show message boxes for prompting, confirmation and warning users.  To show a message box, simply call the Show method of the MessageBox class.  The simplest version of the Show method is the one that accepts a string message as an argument.
  • 5.
  • 6.  The table below shows the members of the MessageBoxButtons enumeration. Member Buttons Shown AbortRetryIgnore Abort, Retry, Ignore OK OK OKCancel OK, Cancel RetryCancel Retry, Cancel YesNo Yes, No YesNoCancel Yes, No, Cancel
  • 7.
  • 8. Form In C# window Application
  • 9. Windows Form  Windows Forms (or simply forms) are the windows you see in a Windows Application. You can create multiple forms in a single application.  Each form inherits the properties and methods of the System.Windows.Forms.Form class.  The namespaceSystem.Windows.Forms contains components you will need for creating forms and controls.
  • 10.
  • 12. Button control  The Button control (System.Windows.Forms.Button) is commonly used to execute commands when it is clicked.  When a button is clicked, you specify codes that will be used.  Buttons are typically used to confirm or cancel an action, to perform different actions, and to open some more dialogs.
  • 14. Label & LinkLabel control  The Label control (System.Windows.Forms.Label) is used to add text to a form that can be used to show messages, or add labels to identify what other controls' functionality is. Drag a label control from the toolbox to the form.  By default, it will have an initial text.  A LinkLabel control is a label control that can display a hyperlink.
  • 15.
  • 17. Textbox control  A Textbox control is used to display, or accept as input, a single line of text.  This control has additional functionality that is not found in the standard Windows text box control, including multiline editing and password character masking.
  • 19. RichTextBox Control  The RichTextBox control (System.Windows.Forms. RichTextBox) is similar to a TextBox control, but it allows you to format different parts of the text inside it.  The TextBox control is typically used to accept text input from the user while the RichTextBox control is used to show formatted text and save it in Rich Text Format (RTF).
  • 20.
  • 21.
  • 23. CheckBox And RadioButton Control  CheckBox  Checkboxes allow the user to make multiple selections from a number of options.  CheckBox to give the user an option, such as true/false or yes/no.  You can click a check box to select it and click it again to deselect it.  RadioButton  A radio button or option button enables the user to select a single option from a group of choices when paired with other RadioButton controls.  When a user clicks on a radio button, it becomes checked, and all other radio buttons with same group become unchecked
  • 24.
  • 25.
  • 27. NumericUpDown  The NumericUpDown control is typically used to get numeric inputs and automatically restricts user for giving invalid non-numeric values.  The NumericUpDown control appears like a TextBox control, but there are arrow buttons on its right or left side that is used to increment or decrement the value of the control.Control Property Value button1 Name buttonCalculate numericUpDown1 Name numericUpDownPrice Decimal 2 Increment 0.50 Maximum 10000 numericUpDown2 Name numericUpDownQuantity Maximum 100
  • 28.
  • 29. PictureBox Control  The Windows Forms PictureBox control is used to display images in bitmap, GIF , icon , or JPEG formats.
  • 30. ComboBox control  The ComboBox control is another way of allowing a user to choose from a set of options.
  • 31.
  • 32. DateTimePicker Control  DateTimePicker is ideal for choosing a single date and/or time value and requires the same amount of space as an ordinary drop-down list box.  When the user clicks the drop-down button, a month calendar appears.  The operation of the control from this point is exactly the same as the MonthCalendar control.
  • 33. MonthCalendar control  The MonthCalendar control presents an intuitive graphical interface for users to view and set date information
  • 34.
  • 37. Web Browser Control  WebBrowser control allows developers to build Web browsing capability within Windows Forms applications.
  • 40.  ColorDialog Control  FontDialog Control  FolderBrowserDialog Control  OpenFileDialog Control  SaveFileDialog control
  • 41. The ColorDialog Control  The ColorDialog (System.Windows.Forms.ColorDialog ) is used when you want to pick different colors.  For example, when you want to pick a color of the font or a background color for the form, you can use the ColorDialog control  The following are some of the useful properties of the ColorDialog control. Properties Description AllowFullOpen Specifies whether the user can choose custom colors. Color The color that the user selected. CustomColors A collection of custom colors picked by the user. FullOpen Specifies whether the part used to pick custom colors are automatically open.
  • 44. The FontDialog Control  The FontDialog control (System.Windows.Forms.FontDialog) is a handy control for selecting different kinds of font and font- related properties.Properties Description Color The selected color of the user. Font The resulting font constructed using the font dialog. MaxSize The maximum size the dialog can provide. MinSize The minimum size the dialog can provide. ShowApply Indicates whether to show the Apply button. ShowColor Indicates whether to show the Color option. ShowEffects Indicates whether to show the Effects option.
  • 45.
  • 46. The FolderBrowserDialog Control  Folder Browser Dialog is a .NET control that prompts user to browse and select a folder location. Using FolderBroserDialog user can only select folders and not files.  The FolderBrowserDialog control (System.Windows.Forms.FolderBrowserDialog) allows you to browse for a directory in your system.
  • 47.
  • 48. OpenFileDialog Control  An OpenFileDialog control is used to browse and select a file on a computer.
  • 49. SaveFileDialog control  A SaveFileDialog control is used to save a file using Windows Save File Dialog.