SlideShare uma empresa Scribd logo
1 de 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#

Mais conteúdo relacionado

Mais procurados

C# Exceptions Handling
C# Exceptions Handling C# Exceptions Handling
C# Exceptions Handling sharqiyem
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivityTanmoy Barman
 
Developing an ASP.NET Web Application
Developing an ASP.NET Web ApplicationDeveloping an ASP.NET Web Application
Developing an ASP.NET Web ApplicationRishi Kothari
 
Objects and classes in Visual Basic
Objects and classes in Visual BasicObjects and classes in Visual Basic
Objects and classes in Visual BasicSangeetha Sg
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScriptShahDhruv21
 
7. check box control
7. check box control7. check box control
7. check box controlchauhankapil
 
Swing and AWT in java
Swing and AWT in javaSwing and AWT in java
Swing and AWT in javaAdil Mehmoood
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentalsGopal Ji Singh
 
Database Connectivity in PHP
Database Connectivity in PHPDatabase Connectivity in PHP
Database Connectivity in PHPTaha Malampatti
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.NetHitesh Santani
 
Common dialog control
Common dialog controlCommon dialog control
Common dialog controlSoumya Vijoy
 

Mais procurados (20)

Visual Basic Controls ppt
Visual Basic Controls pptVisual Basic Controls ppt
Visual Basic Controls ppt
 
C# Exceptions Handling
C# Exceptions Handling C# Exceptions Handling
C# Exceptions Handling
 
Java: GUI
Java: GUIJava: GUI
Java: GUI
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
 
Developing an ASP.NET Web Application
Developing an ASP.NET Web ApplicationDeveloping an ASP.NET Web Application
Developing an ASP.NET Web Application
 
Applets
AppletsApplets
Applets
 
Applets in java
Applets in javaApplets in java
Applets in java
 
Java Swing
Java SwingJava Swing
Java Swing
 
Objects and classes in Visual Basic
Objects and classes in Visual BasicObjects and classes in Visual Basic
Objects and classes in Visual Basic
 
VB.net
VB.netVB.net
VB.net
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
 
7. check box control
7. check box control7. check box control
7. check box control
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
Swing and AWT in java
Swing and AWT in javaSwing and AWT in java
Swing and AWT in java
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
 
Database Connectivity in PHP
Database Connectivity in PHPDatabase Connectivity in PHP
Database Connectivity in PHP
 
Java I/o streams
Java I/o streamsJava I/o streams
Java I/o streams
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.Net
 
Visual basic
Visual basicVisual basic
Visual basic
 
Common dialog control
Common dialog controlCommon dialog control
Common dialog control
 

Destaque

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
 

Destaque (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
 
4.C#
4.C#4.C#
4.C#
 
กำหนดค่า 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
 

Semelhante a Windowforms controls c#

Semelhante a 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
 

Último

Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 

Último (20)

Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ 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.