SlideShare a Scribd company logo
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#

More Related Content

What's hot

Lecture 1 introduction to vb.net
Lecture 1   introduction to vb.netLecture 1   introduction to vb.net
Lecture 1 introduction to vb.netMUKALU STEVEN
 
javascript objects
javascript objectsjavascript objects
javascript objectsVijay Kalyan
 
Operators used in vb.net
Operators used in vb.netOperators used in vb.net
Operators used in vb.netJaya Kumari
 
Creating simple component
Creating simple componentCreating simple component
Creating simple componentpriya Nithya
 
Visual Basic menu
Visual Basic menuVisual Basic menu
Visual Basic menukuldeep94
 
Objects and classes in Visual Basic
Objects and classes in Visual BasicObjects and classes in Visual Basic
Objects and classes in Visual BasicSangeetha Sg
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE IntroductionAhllen Javier
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.NetHitesh Santani
 
Java Exception handling
Java Exception handlingJava Exception handling
Java Exception handlingkamal kotecha
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computersimran153
 
Exception Handling in VB.Net
Exception Handling in VB.NetException Handling in VB.Net
Exception Handling in VB.Netrishisingh190
 

What's hot (20)

Lecture 1 introduction to vb.net
Lecture 1   introduction to vb.netLecture 1   introduction to vb.net
Lecture 1 introduction to vb.net
 
Ado.Net Tutorial
Ado.Net TutorialAdo.Net Tutorial
Ado.Net Tutorial
 
JAVA AWT
JAVA AWTJAVA AWT
JAVA AWT
 
Sdi & mdi
Sdi & mdiSdi & mdi
Sdi & mdi
 
ADO .Net
ADO .Net ADO .Net
ADO .Net
 
javascript objects
javascript objectsjavascript objects
javascript objects
 
Web controls
Web controlsWeb controls
Web controls
 
Database Connection
Database ConnectionDatabase Connection
Database Connection
 
Operators used in vb.net
Operators used in vb.netOperators used in vb.net
Operators used in vb.net
 
Creating simple component
Creating simple componentCreating simple component
Creating simple component
 
Java: GUI
Java: GUIJava: GUI
Java: GUI
 
Visual Basic menu
Visual Basic menuVisual Basic menu
Visual Basic menu
 
Meaning Of VB
Meaning Of VBMeaning Of VB
Meaning Of VB
 
Objects and classes in Visual Basic
Objects and classes in Visual BasicObjects and classes in Visual Basic
Objects and classes in Visual Basic
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Php and MySQL
Php and MySQLPhp and MySQL
Php and MySQL
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.Net
 
Java Exception handling
Java Exception handlingJava Exception handling
Java Exception handling
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
 
Exception Handling in VB.Net
Exception Handling in VB.NetException Handling in VB.Net
Exception Handling in VB.Net
 

Viewers also liked

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
 

Viewers also liked (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
 

Similar to Windowforms controls c#

Similar to 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
 
Visual Basic Controls ppt
Visual Basic Controls pptVisual Basic Controls ppt
Visual Basic Controls ppt
 
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
 

Recently uploaded

Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfChristopherTHyatt
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutesconfluent
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomCzechDreamin
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupCatarinaPereira64715
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaRTTS
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1DianaGray10
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekCzechDreamin
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationZilliz
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor TurskyiFwdays
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoTAnalytics
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxJennifer Lim
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityScyllaDB
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...CzechDreamin
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxAbida Shariff
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsPaul Groth
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 

Recently uploaded (20)

Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdf
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 

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.