Click here to Skip to main content
15,892,697 members
Articles / Programming Languages / C#

.NET TimePicker

Rate me:
Please Sign up or sign in to vote.
4.20/5 (39 votes)
27 Jun 20075 min read 311.1K   9.9K   83  
A variation on the standard .NET date-time picker
// C# TimePicker Class v2.0
// by Louis-Philippe Carignan - 10 July 2007
using System;

namespace MyTimePicker
{
    public class TimeChangeEventArgs : EventArgs
    {
        #region Properties
        public TimeSpan OldSelectedTime
        {
            get { return m_sOldSelectedTime; }
        }
        private TimeSpan m_sOldSelectedTime;

        
        public TimeSpan MyProperty
        {
            get { return m_sNewSelectedTime; }
        }
        private TimeSpan m_sNewSelectedTime;
        #endregion Properties

        public TimeChangeEventArgs(TimeSpan sOldSelectedTime, TimeSpan sNewSelectedTime)
        {
            m_sOldSelectedTime = sOldSelectedTime;
            m_sNewSelectedTime = sNewSelectedTime;
        }
    }
}

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


Written By
Web Developer
Canada Canada
I'm a software engineer with 5 years of experience. I've been writting code mostly in .NET. My fields of expertise revolves around Windows Forms, Remoting, Xml, database connectivity, CompactFramework and GIS applications.

I'm an early adopter of Test Driven Developpement and Continuous Integration. I worked with tools such as Test Driven .NET, Cruise Control .NET, NAnt, NUnit and NCover. I am involved with the Agile user group in my city. My main area of interest is with lean software development but I do value other methodologies as well.

You can read my blog about lean software. It's mostly in French but I do have a few posts in English.
http://blogs.agilequebec.ca/blogs/lpcarignan/default.aspx

I'm always open to job offers. I am open to senior software engineer or achitect positions. If you are looking for someone with my profile, send me an e-mail. I am willing to relocate.

Comments and Discussions