Simple Digital Clock Timer with date using C# and

Simple Digital Clock Timer with date using C# and

Today, We want to share with you Simple Digital Clock Timer with date using C# and
In this post we will show you How to create a digital clock in CSharp using Visual Studio – C#, hear for How to diplay real time timing(clock) on we will give you demo and example for implement.
In this post, we will learn about c# – Alarm clock application in asp.Net with an example.

Application Design for C#

We shall now make the form design for the main C# application, so first of all locate the form designer file called file name as a form1.Designer.cs, It is the default form name of the C# application name when We make a new simple windows form. and then f2 or Rename the custom name form like as a Main.cs as well as after that write some source codes inside your form designer file.

Also Read :  Auto Post on Facebook Page using Facebook PHP API

////Countdown timer in using C#
namespace Simple_Digital_Clock
    partial class Main
        private System.ComponentModel.IContainer components = null;
        protected override void Dispose(bool disposing)
            if (disposing && (components != null))
        #region Windows Form Designer generated code
        private void InitializeComponent()
            this.components = new System.ComponentModel.Container();
            this.display_time = new System.Windows.PakaForms.Label();
            this.paka_sec = new System.Windows.PakaForms.Label();
            this.paka_day = new System.Windows.PakaForms.Label();
            this.pakaTimer = new System.Windows.PakaForms.Timer(this.components);
            this.paka_date = new System.Windows.PakaForms.Label();
            this.display_time.AutoSize = true;
            this.display_time.Font = new System.Drawing.Font("DS-Digital", 72F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.display_time.ForeColor = System.Drawing.Color.Green;
            this.display_time.Location = new System.Drawing.Point(88, 76);
            this.display_time.Name = "display_time";
            this.display_time.Size = new System.Drawing.Size(376, 142);
            this.display_time.TabIndex = 0;
            this.display_time.Text = "00:00";
            this.paka_sec.AutoSize = true;
            this.paka_sec.Font = new System.Drawing.Font("DS-Digital", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.paka_sec.ForeColor = System.Drawing.Color.Green;
            this.paka_sec.Location = new System.Drawing.Point(423, 161);
            this.paka_sec.Name = "paka_sec";
            this.paka_sec.Size = new System.Drawing.Size(57, 40);
            this.paka_sec.TabIndex = 1;
            this.paka_sec.Text = "00";
            this.paka_day.AutoSize = true;
            this.paka_day.Font = new System.Drawing.Font("DS-Digital", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.paka_day.ForeColor = System.Drawing.Color.Green;
            this.paka_day.Location = new System.Drawing.Point(343, 201);
            this.paka_day.Name = "paka_day";
            this.paka_day.Size = new System.Drawing.Size(77, 40);
            this.paka_day.TabIndex = 2;
            this.paka_day.Text = "Day";
            this.pakaTimer.Enabled = true;
            this.pakaTimer.Tick += new System.EventHandler(this.Time_Start);
            this.paka_date.AutoSize = true;
            this.paka_date.Font = new System.Drawing.Font("DS-Digital", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.paka_date.ForeColor = System.Drawing.Color.Green;
            this.paka_date.Location = new System.Drawing.Point(105, 200);
            this.paka_date.Name = "paka_date";
            this.paka_date.Size = new System.Drawing.Size(171, 40);
            this.paka_date.TabIndex = 3;
            this.paka_date.Text = "MM-DD-YY";
            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
            this.AutoScaleMode = System.Windows.PakaForms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.Black;
            this.ClientSize = new System.Drawing.Size(557, 342);
            this.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
            this.FormBorderStyle = System.Windows.PakaForms.FormBorderStyle.None;
            this.Name = "Main";
            this.StartPosition = System.Windows.PakaForms.FormStartPosition.CenterScreen;
            this.Text = "Form1";
        private System.Windows.PakaForms.Label display_time;
        private System.Windows.PakaForms.Label paka_sec;
        private System.Windows.PakaForms.Label paka_day;
        private System.Windows.PakaForms.Timer pakaTimer;
        private System.Windows.PakaForms.Label paka_date;
/////Digital Clock in C# Console Application

Making the Script

We shall now make the simple script to create things some work. To do first of all put a customs timer tools in the drag and drop form, after that select the timer ssome properties and set here enabled to boolean opetion Like as a true(for C# – Simple Digital Clock).

Also Read :  Get Responsive navbar menu to Automatically close after anchor link clicked

/////C# - Simple Digital Clock
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.PakaForms;
namespace Simple_Digital_Clock
    public partial class Main : Form
        public Main()
        private void Time_Start(object sender, EventArgs e)
            display_time.Text = DateTime.Now.ToString("hh:mm");
            paka_sec.Text = DateTime.Now.ToString("ss");
            paka_day.Text = DateTime.Now.ToString("dddd");
            paka_date.Text = DateTime.Now.ToString("MMM dd yyyy");
//////Digital Clock with Date Timer using c#,

There you step by step go we successfully made a Simple easy way to created Digital Clock using C# Programming Languages. We hope that this Post very help you Phase by Phase understand on how to source code develop an application simple way using C#(Digital Clock with Date Timer using c#,).

We hope you get an idea about How to diplay real time timing(clock) on
We would like to have feedback on my Information blog .
Your valuable any feedback, Good question, Inspirational Quotes, or Motivational comments about this article are always welcome.
If you liked this post, Please don’t forget to share this as Well as Like FaceBook Page.

Also Read :  PHP Ajax dynamic Progress Bar for PHP AJAX File Upload

We hope This Post can help you…….Good Luck!.

Recommended For You.

Laravel Dependent Dropdown Example Tutorial From Scratch
Today, We want to share with you Laravel Dependent Dropdown Example Tutorial From Scratch.In this post we will show you

Add a Comment

Your email address will not be published. Required fields are marked *