R4R
Right Place For Right Person TM
 
R4R VB.NetVB.Net Tutorials

previous

Home

Next

DateTimePicker and Month Calendar

DateTimePicker

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.

                                                    

Useful properties

  • BackColor - Indicates the background color of the DateTimePicker control.

  • CustomFormat - Determines the custom date/time format string.

  • DropDownAlign - Determines the alignment of the drop-down calendar on the DateTimePicker control. Takes a value of either Left or Right.

  • ForeColor - Indicates the foreground color of the DateTimePicker control.

  • Format - Determines the format of the date and time displayed in the control.

  • MaxDate - Determines the maximum date and time that can be selected in the control.

  • MaximumDateTime - Gets the maximum date value allowed for the DateTimePicker control.

  • MinDate - Determines the minimum date and time that can be selected in the control.

  • MinimumDateTime - Gets the minimum date value allowed for the DateTimePicker control.

  • ShowCheckBox - Indicates whether a check box is displayed to the left of the selected date.

  • ShowUpDown - Indicates whether a spin button control (also known as an up-down control) is used to adjust the date/time value.

  • Value - Determines the date/time value assigned to the control.

Month Calendar

The MonthCalendar control presents an intuitive graphical interface for users to view and set date information.

           

Useful properties

  • AnnuallyBoldedDates - Determines the array of DateTime objects that determines which annual days are displayed in bold.

  • BoldedDates - Contains the array of DateTime objects that determines which nonrecurring dates are displayed in bold.

  • CalendarDimensions - Determines the number of columns and rows of months displayed. You can have multiple months displayed horizontally and vertically.

  • FirstDayOfWeek - Determines the first day of the week as displayed in the month calendar. By default, Sunday is shown as the first day of the week.

  • MaxDate - Determines the maximum allowable date.

  • MaxSelectionCount - Determines the maximum number of days that can be selected in a month calendar control.

  • MinDate - Determines the minimum allowable date.

  • MonthlyBoldedDates - Contains the array of DateTime objects that determine which monthly days to bold.

  • SelectionEnd - Determines the end date of the selected range of dates.

  • SelectionRange - Determines the selected range of dates for a month calendar control.

  • SelectionStart - Determines the start date of the selected range of dates.

  • ShowToday - Indicates whether the date represented by the TodayDate property is displayed at the bottom of the control.

  • ShowTodayCircle - Indicates whether today's date is identified with a circle or square.

  • ShowWeekNumbers - Indicates whether the month calendar control displays week numbers (1-52) to the left of each row of days.

  • SingleMonthSize - Gets the minimum size to display one month of the calendar.

  • TitleBackColor - Indicates the background color of the title area of the calendar.

  • TitleForeColor - Indicates the foreground color of the title area of the calendar.

  • TodayDate - Determines the value that is used by MonthCalendar as today's date.

  • TodayDateSet - Gets a value indicating whether the TodayDate property has been explicitly set.

  • TrailingForeColor - Indicates the color of days in months that are not fully displayed in the control.

Example

        

Code for DateTime Picker Control

Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, 
	ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
        label1.Text = "DateTimePicker Date: " + DateTimePicker1.Text
End Sub

Code for Month Calendar Control

Private Sub MonthCalendar1_DateChanged(ByVal sender As System.Object, 
	ByVal e As System.Windows.Forms.DateRangeEventArgs) 
	Handles MonthCalendar1.DateChanged
        label2.Text = "Month Calender Date :  " & MonthCalendar1.SelectionStart.ToLongDateString()
End Sub

previous

Home

Next


Tolal:0 Click:
Show All Comments

Post Your Comments

Your Name:

Your Email ID :
Comments :
URL
  =* Enter SUM

New Updates

10:New Updates
Tutorials,examples and Interview Questions with answers
Posted By: Shashi     Posted Date:02.10.14

9:C# Tutorials,C# examples and C# Interview Questions with answers
R4R provide C# Tutorials,C# examples and C# Interview Questions with answers. Through R4R you can develop a small application and small programs.We cover C# Tutorials,C# examples and C# Interview Questions and answers for freshers as well experienced programmer.
Posted By: Shashi     Posted Date:11.17.13

8:Java/J2EE(Servlet,JSP,JNDI,Struts,Spring,Hibernate,EJB,JSF,JMS,Web-Services)
In this section R4R covers Java/J2EE(Servlet,JSP, JNDI, Struts, Spring, Hibernate, EJB,JSF,JMS,Web-Services) Tutorials with Examples.R4R provide Java/J2EE (Servlet,JSP, JNDI,Struts, Spring, Hibernate, EJB, JSF, JMS, Web-Services) Interview Questions with answers study materials for freshers and experienced.
Posted By: Shashi     Posted Date:11.13.13

7:CoreJava Tutorials , CoreJava Examples and CoreJava Interview Questions with answers
In this section R4R covers CoreJava Tutorials with CoreJava Examples. R4R covers CoreJava programming concept in easy way. R4R provide CoreJava Interview Questions with answers study materials for freshers and experienced.
Posted By: Shashi     Posted Date:11.04.13

6:Microsoft.net Technology ASP.NET,c# ,ADO.NET,WCF,WPF,Silverlight ,VB.net
R4R provides Microsoft Technologies(like ASP.NET,c# ,ADO.NET,WCF,WPF, Silverlight and VB.ne)Tutorials with Examples,programming concept and Interview Questions with answers study materials for freshers and experienced.
Posted By: Shashi     Posted Date:11.04.13

5:J2me Tutorials concept with Examples with Netbean IDE and J2ME Application Examples.
R4R cover basic J2me Tutorials concept with Examples and provide a way to develop J2me programming concept in easy way. R4R provide J2me Interview Questions with answers.R4R provide J2me Languages study materials with examples uing Netbean IDE and J2ME Application Examples.
Posted By: Shashi     Posted Date:10.30.13

4:J2me Tutorials concept with Examples ith netbean IDE and J2ME Application Examples.
R4R cover basic J2me Tutorials concept with Examples and provide a way to develop J2me programming concept in easy way. R4R provide J2me Interview Questions with answers.R4R provide J2me Languages study materials with examples uing Netbean IDE and J2ME Application Examples.
Posted By: Shashi     Posted Date:10.30.13

3:Java ebooks , Java tutorials , Java examples , Java interview questions and answers
R4R provides study materials for Java/j2EE technologies. R4R covers core java, advanced java, servlet, JSP, Struts, Spring, Hibernate, EJB, JSF, J2ME, ANT, JUnit and Some APIS .R4R also provides ebooks,tutorials,examples, interview questions and answers.
Posted By: Shashi     Posted Date:10.30.13

2:Learn basic C++ Tutorials with Examples , C++ Interview Questions with answers
R4R is a free E-learning website.You can learn basic C++ Tutorials with Examples , C++ Interview Questions with answers and also some hot topics.
Posted By: Shashi     Posted Date:10.30.13

1:C Tutorials with Example C subjective and objective interview questions and answers
R4R provide C Tutorials with Example and also provides C subjective and objective interview questions and answers.You can learn C in easy way.We cover basics of C here and give some examples.
Posted By: Shashi     Posted Date:10.30.13

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R