SlideShare a Scribd company logo
1 of 13
Session 4
Trình bày : Võ Ngọc Đạt
Email : vongocdatit@gmail.com
Điện thoại : 0934.969.680
Slide 1 of 1309/20/13
Date Controls and Timer Component
Slide 2 of 2609/20/13
Module Introduction
Date controls allow you to select the required date and time and validates the input to
avoid any invalid values.
The MonthCalendar control allows you to select multiple dates and to display multiple
months at a time.
The Timer component is similar to a stop watch that allows you to track the time for a
particular task.
Slide 3 of 3809/20/13
Purpose
Date and time controls are used to select or display date and time. These controls provide
a calendar in a graphical format, which allows you to easily select a particular date. This helps
in avoiding manual mistakes for date and time by restricting the user from entering any
invalid date.
There are two types of date controls. They are:
+ DateTimePicker
+ MonthCalendar
Slide 4 of 3809/20/13
"DateTimePicker" Control
The DateTimePicker control allows you to select an item from a list of dates or times. It
appears as a text box along with a drop-down calendar and displays the current date in a
particular format. The calendar allows you to view the days of a week or browse through
the months
Slide 5 of 3809/20/13
Property Description
CustomFormat Specifies or retrieves the custom date or time format string.
Format Specifies or retrieves the format of date and time displayed in the control.
MinDate Specifies or retrieves the minimum date and time that you can select in the control.
MaxDate Specifies or retrieves the maximum date and time that you can select in the control.
ShowCheckBox Specifies or retrieves a value, which indicates whether the CheckBox control should appear at the left side
of the date, which is selected.
Value Specifies or retrieves the date or time assigned to the control.
Method Description
Focus Sets the input focus on a DateTimePicker control.
Show Displays a DateTimePicker control on the form.
Event Description
FormatChanged Occurs when the value of the Format property is changed.
ValueChanged Occurs when the value of the Value property is changed.
Slide 6 of 3809/20/13
Slide 7 of 3809/20/13
Slide 8 of 3809/20/13
"MonthCalendar" Control
The MonthCalendar control allows you to view and select a date with the help of a
graphical calendar. The calendar appears as drop-down grid of rows and columns displaying
the dates of a particular month.
The MonthCalendar control is similar to the DateTimePicker control, but allows you to
select multiple dates simultaneously. Unlike the DateTimePicker control, the MonthCalendar
control cannot display time and does not allow you to type dates.
Slide 9 of 3809/20/13
Property Description
CalendarDimensions Specifies or retrieves the total number of rows and columns of the months appearing
in the calendar.
ShowToday Specifies or retrieves a value indicating whether the date value in the TodayDate
property will appear at the bottom of the control.
ShowTodayCircle Specifies or retrieves a value, indicating whether today's date is circled.
ShowWeekNumbers Specifies or retrieves a value indicating whether a month calendar control displays the
week numbers (1-52) to the left of each row of days.
TodayDate Specifies or retrieves a value that is used as the current date by the month calendar
control.
Event Description
DateChanged Occurs when the selected date in the month calendar control is changed.
DateSelected Occurs when the user selects a date in the month calendar control using the mouse.
Method Description
AddAnnuallyBoldedDate Adds a day that is displayed in bold in the month calendar control on an annual basis.
AddBoldedDate Adds a day to be displayed in bold in the month calendar control.
AddMonthlyBoldedDate Adds a day that is displayed in bold in the month calendar control on a monthly basis.
Slide 10 of 3809/20/13
Slide 11 of 3809/20/13
Slide 12 of 3809/20/13
"Timer" Component
The Timer component is a component that generates an event at regular intervals.
For example, you can use the component to set a time within which the user has to
complete answering the required number of questions. When the specified time interval is
over, you can perform certain tasks such as asking the user to stop answering the questions.
Slide 13 of 1309/20/13
Property Description
Enabled Specifies or retrieves a value indicating whether the timer is running.
Interval Specifies or retrieves the time in milliseconds between the timer ticks.
Method Description
Start Starts the timer.
Stop Stops the timer.
Event Description
Tick Occurs when a particular time interval is over and the Enabled property of the component
is true.

More Related Content

Similar to Session 4 Bai 4 ve winform

11 g time serices
11 g time serices11 g time serices
11 g time sericesmuralikoti
 
Nextera Energy Job Aid
Nextera Energy Job AidNextera Energy Job Aid
Nextera Energy Job AidKara Hodges
 
Microsoft Project - MSP | 2013-2016
Microsoft Project - MSP | 2013-2016Microsoft Project - MSP | 2013-2016
Microsoft Project - MSP | 2013-2016Rajeev Sharma
 
Project NameCommunication PlanOverviewEffective and .docx
Project NameCommunication PlanOverviewEffective and .docxProject NameCommunication PlanOverviewEffective and .docx
Project NameCommunication PlanOverviewEffective and .docxwkyra78
 
Financials Cloud and Planning and Budgeting Cloud Service White Paper
Financials Cloud and Planning and Budgeting Cloud Service White PaperFinancials Cloud and Planning and Budgeting Cloud Service White Paper
Financials Cloud and Planning and Budgeting Cloud Service White PaperMatthew Skurdahl
 
Developing a ssrs report using a ssas data source
Developing a ssrs report using a ssas data sourceDeveloping a ssrs report using a ssas data source
Developing a ssrs report using a ssas data sourcerelekarsushant
 
BillQuick User Interface Tips & Tricks
BillQuick User Interface Tips & TricksBillQuick User Interface Tips & Tricks
BillQuick User Interface Tips & Tricksbqe
 
Reference
ReferenceReference
Referencemattbu
 
Microsoft Outlook Timesheet Integration
Microsoft Outlook Timesheet IntegrationMicrosoft Outlook Timesheet Integration
Microsoft Outlook Timesheet IntegrationBinary Spectrum
 
Sentrifugo HRMS 3.0 - Time Management User Guide
Sentrifugo HRMS 3.0 - Time Management User GuideSentrifugo HRMS 3.0 - Time Management User Guide
Sentrifugo HRMS 3.0 - Time Management User GuideSentrifugo open source HRMS
 
C# Tutorial MSM_Murach chapter-10-slides
C# Tutorial MSM_Murach chapter-10-slidesC# Tutorial MSM_Murach chapter-10-slides
C# Tutorial MSM_Murach chapter-10-slidesSami Mut
 
Delivery Date Scheduler Magento Extension - User Guide
Delivery Date Scheduler Magento Extension - User GuideDelivery Date Scheduler Magento Extension - User Guide
Delivery Date Scheduler Magento Extension - User GuideBiztech Store
 
Deltek Accounting System Storyboard
Deltek Accounting System StoryboardDeltek Accounting System Storyboard
Deltek Accounting System StoryboardJim Piechocki
 
MS Project - Lesson #1A - Basics of Project Scheduling - Part 1O.docx
MS Project - Lesson #1A - Basics of Project Scheduling - Part 1O.docxMS Project - Lesson #1A - Basics of Project Scheduling - Part 1O.docx
MS Project - Lesson #1A - Basics of Project Scheduling - Part 1O.docxrosemarybdodson23141
 
Unit contract tracking in primavera contract management
Unit contract tracking in primavera contract managementUnit contract tracking in primavera contract management
Unit contract tracking in primavera contract managementp6academy
 
Calculation contex in sap business objects
Calculation contex in sap business objectsCalculation contex in sap business objects
Calculation contex in sap business objectsDmitry Anoshin
 
Power bi tips rolling averages and rolling sums
Power bi tips rolling averages and rolling sumsPower bi tips rolling averages and rolling sums
Power bi tips rolling averages and rolling sumsSelect Distinct Limited
 

Similar to Session 4 Bai 4 ve winform (20)

11 g time serices
11 g time serices11 g time serices
11 g time serices
 
Omni plan 2-manual
Omni plan 2-manualOmni plan 2-manual
Omni plan 2-manual
 
Nextera Energy Job Aid
Nextera Energy Job AidNextera Energy Job Aid
Nextera Energy Job Aid
 
Microsoft Project - MSP | 2013-2016
Microsoft Project - MSP | 2013-2016Microsoft Project - MSP | 2013-2016
Microsoft Project - MSP | 2013-2016
 
Project NameCommunication PlanOverviewEffective and .docx
Project NameCommunication PlanOverviewEffective and .docxProject NameCommunication PlanOverviewEffective and .docx
Project NameCommunication PlanOverviewEffective and .docx
 
Financials Cloud and Planning and Budgeting Cloud Service White Paper
Financials Cloud and Planning and Budgeting Cloud Service White PaperFinancials Cloud and Planning and Budgeting Cloud Service White Paper
Financials Cloud and Planning and Budgeting Cloud Service White Paper
 
Developing a ssrs report using a ssas data source
Developing a ssrs report using a ssas data sourceDeveloping a ssrs report using a ssas data source
Developing a ssrs report using a ssas data source
 
BillQuick User Interface Tips & Tricks
BillQuick User Interface Tips & TricksBillQuick User Interface Tips & Tricks
BillQuick User Interface Tips & Tricks
 
Reference
ReferenceReference
Reference
 
Microsoft Outlook Timesheet Integration
Microsoft Outlook Timesheet IntegrationMicrosoft Outlook Timesheet Integration
Microsoft Outlook Timesheet Integration
 
Introduction to mapinfo
Introduction to mapinfoIntroduction to mapinfo
Introduction to mapinfo
 
Sentrifugo HRMS 3.0 - Time Management User Guide
Sentrifugo HRMS 3.0 - Time Management User GuideSentrifugo HRMS 3.0 - Time Management User Guide
Sentrifugo HRMS 3.0 - Time Management User Guide
 
C# Tutorial MSM_Murach chapter-10-slides
C# Tutorial MSM_Murach chapter-10-slidesC# Tutorial MSM_Murach chapter-10-slides
C# Tutorial MSM_Murach chapter-10-slides
 
Delivery Date Scheduler Magento Extension - User Guide
Delivery Date Scheduler Magento Extension - User GuideDelivery Date Scheduler Magento Extension - User Guide
Delivery Date Scheduler Magento Extension - User Guide
 
Deltek Accounting System Storyboard
Deltek Accounting System StoryboardDeltek Accounting System Storyboard
Deltek Accounting System Storyboard
 
MS Project - Lesson #1A - Basics of Project Scheduling - Part 1O.docx
MS Project - Lesson #1A - Basics of Project Scheduling - Part 1O.docxMS Project - Lesson #1A - Basics of Project Scheduling - Part 1O.docx
MS Project - Lesson #1A - Basics of Project Scheduling - Part 1O.docx
 
Unit contract tracking in primavera contract management
Unit contract tracking in primavera contract managementUnit contract tracking in primavera contract management
Unit contract tracking in primavera contract management
 
Calculation contex in sap business objects
Calculation contex in sap business objectsCalculation contex in sap business objects
Calculation contex in sap business objects
 
Power bi tips rolling averages and rolling sums
Power bi tips rolling averages and rolling sumsPower bi tips rolling averages and rolling sums
Power bi tips rolling averages and rolling sums
 
Sentrifugo 2.1 Time Management Guide
Sentrifugo 2.1 Time Management GuideSentrifugo 2.1 Time Management Guide
Sentrifugo 2.1 Time Management Guide
 

More from mrtom16071980

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

More from mrtom16071980 (9)

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

Recently uploaded

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 

Recently uploaded (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Session 4 Bai 4 ve winform

  • 1. Session 4 Trình bày : Võ Ngọc Đạt Email : vongocdatit@gmail.com Điện thoại : 0934.969.680 Slide 1 of 1309/20/13 Date Controls and Timer Component
  • 2. Slide 2 of 2609/20/13 Module Introduction Date controls allow you to select the required date and time and validates the input to avoid any invalid values. The MonthCalendar control allows you to select multiple dates and to display multiple months at a time. The Timer component is similar to a stop watch that allows you to track the time for a particular task.
  • 3. Slide 3 of 3809/20/13 Purpose Date and time controls are used to select or display date and time. These controls provide a calendar in a graphical format, which allows you to easily select a particular date. This helps in avoiding manual mistakes for date and time by restricting the user from entering any invalid date. There are two types of date controls. They are: + DateTimePicker + MonthCalendar
  • 4. Slide 4 of 3809/20/13 "DateTimePicker" Control The DateTimePicker control allows you to select an item from a list of dates or times. It appears as a text box along with a drop-down calendar and displays the current date in a particular format. The calendar allows you to view the days of a week or browse through the months
  • 5. Slide 5 of 3809/20/13 Property Description CustomFormat Specifies or retrieves the custom date or time format string. Format Specifies or retrieves the format of date and time displayed in the control. MinDate Specifies or retrieves the minimum date and time that you can select in the control. MaxDate Specifies or retrieves the maximum date and time that you can select in the control. ShowCheckBox Specifies or retrieves a value, which indicates whether the CheckBox control should appear at the left side of the date, which is selected. Value Specifies or retrieves the date or time assigned to the control. Method Description Focus Sets the input focus on a DateTimePicker control. Show Displays a DateTimePicker control on the form. Event Description FormatChanged Occurs when the value of the Format property is changed. ValueChanged Occurs when the value of the Value property is changed.
  • 6. Slide 6 of 3809/20/13
  • 7. Slide 7 of 3809/20/13
  • 8. Slide 8 of 3809/20/13 "MonthCalendar" Control The MonthCalendar control allows you to view and select a date with the help of a graphical calendar. The calendar appears as drop-down grid of rows and columns displaying the dates of a particular month. The MonthCalendar control is similar to the DateTimePicker control, but allows you to select multiple dates simultaneously. Unlike the DateTimePicker control, the MonthCalendar control cannot display time and does not allow you to type dates.
  • 9. Slide 9 of 3809/20/13 Property Description CalendarDimensions Specifies or retrieves the total number of rows and columns of the months appearing in the calendar. ShowToday Specifies or retrieves a value indicating whether the date value in the TodayDate property will appear at the bottom of the control. ShowTodayCircle Specifies or retrieves a value, indicating whether today's date is circled. ShowWeekNumbers Specifies or retrieves a value indicating whether a month calendar control displays the week numbers (1-52) to the left of each row of days. TodayDate Specifies or retrieves a value that is used as the current date by the month calendar control. Event Description DateChanged Occurs when the selected date in the month calendar control is changed. DateSelected Occurs when the user selects a date in the month calendar control using the mouse. Method Description AddAnnuallyBoldedDate Adds a day that is displayed in bold in the month calendar control on an annual basis. AddBoldedDate Adds a day to be displayed in bold in the month calendar control. AddMonthlyBoldedDate Adds a day that is displayed in bold in the month calendar control on a monthly basis.
  • 10. Slide 10 of 3809/20/13
  • 11. Slide 11 of 3809/20/13
  • 12. Slide 12 of 3809/20/13 "Timer" Component The Timer component is a component that generates an event at regular intervals. For example, you can use the component to set a time within which the user has to complete answering the required number of questions. When the specified time interval is over, you can perform certain tasks such as asking the user to stop answering the questions.
  • 13. Slide 13 of 1309/20/13 Property Description Enabled Specifies or retrieves a value indicating whether the timer is running. Interval Specifies or retrieves the time in milliseconds between the timer ticks. Method Description Start Starts the timer. Stop Stops the timer. Event Description Tick Occurs when a particular time interval is over and the Enabled property of the component is true.