Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Extended DateTimePicker

, 4 Feb 2003
DateTime Picker allows blank display when no data entered.
dtp_example.zip
bin
WindowsApplication2.exe
datetimepicker.dll
tas_datetimepicker.zip
obj
Debug
temp
TempPE
WindowsApplication2
WindowsApplication2.vbproj.user
obj
Debug
TempPE
temp
bin
WindowsApplication2.exe
datetimepicker.dll
Debug
WindowsControlLibrary2.dll
DateTimePicker.dll
DateTimePicker.csproj.user
Public Class Form1
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
    Friend WithEvents DateTimePicker2 As TAS.Widgets.DateTimePicker
    Friend WithEvents DateTimePicker1 As TAS.Widgets.DateTimePicker
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.TextBox1 = New System.Windows.Forms.TextBox()
        Me.DateTimePicker2 = New TAS.Widgets.DateTimePicker()
        Me.DateTimePicker1 = New TAS.Widgets.DateTimePicker()
        Me.SuspendLayout()
        '
        'TextBox1
        '
        Me.TextBox1.Location = New System.Drawing.Point(48, 80)
        Me.TextBox1.Name = "TextBox1"
        Me.TextBox1.Size = New System.Drawing.Size(128, 20)
        Me.TextBox1.TabIndex = 4
        Me.TextBox1.Text = "TextBox1"
        '
        'DateTimePicker2
        '
        Me.DateTimePicker2.CustomFormat = "dd-MM-yyyy HH:mm:ss"
        Me.DateTimePicker2.FormatEx = TAS.Widgets.DateTimePicker.dtpCustomExtensions.dtpDayFullName
        Me.DateTimePicker2.LinkedTo = Nothing
        Me.DateTimePicker2.Location = New System.Drawing.Point(200, 40)
        Me.DateTimePicker2.Name = "DateTimePicker2"
        Me.DateTimePicker2.ReadOnly = False
        Me.DateTimePicker2.ShowButtons = True
        Me.DateTimePicker2.Size = New System.Drawing.Size(96, 20)
        Me.DateTimePicker2.TabIndex = 3
        Me.DateTimePicker2.TabStop = False
        Me.DateTimePicker2.Value = New Date(1753, 1, 1, 15, 8, 40, 119)
        '
        'DateTimePicker1
        '
        Me.DateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"
        Me.DateTimePicker1.FormatEx = TAS.Widgets.DateTimePicker.dtpCustomExtensions.dtpShort
        Me.DateTimePicker1.LinkedTo = "DateTimePicker2"
        Me.DateTimePicker1.Location = New System.Drawing.Point(48, 40)
        Me.DateTimePicker1.Name = "DateTimePicker1"
        Me.DateTimePicker1.ReadOnly = False
        Me.DateTimePicker1.ShowButtons = True
        Me.DateTimePicker1.Size = New System.Drawing.Size(128, 20)
        Me.DateTimePicker1.TabIndex = 2
        Me.DateTimePicker1.Value = New Date(1753, 1, 1, 15, 8, 40, 119)
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(320, 157)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.TextBox1, Me.DateTimePicker2, Me.DateTimePicker1})
        Me.Name = "Form1"
        Me.Text = "Form1"
        Me.ResumeLayout(False)

    End Sub

#End Region

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Tracy Anne Barlow
Web Developer
Australia Australia
No Biography provided

| Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 5 Feb 2003
Article Copyright 2003 by Tracy Anne Barlow
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid