ASp.net

Wednesday, September 16, 2015

Display Current Date And Time in C#

1 comment:

  1. 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.Forms;

    namespace WindowsFormsApplication2
    {
    public partial class Form3 : Form
    {
    public Form3()
    {
    InitializeComponent();
    }

    private void timer1_Tick(object sender, EventArgs e)
    {
    DateTime datatime = DateTime.Now;
    label1.Text = datatime.ToString();
    }

    private void Form3_Load(object sender, EventArgs e)
    {
    timer1.Start();
    }
    }
    }

    ReplyDelete

MM Online Express | Best product Review and Online Marketing site

MM Online Express | Best product Review and Online Marketing site