In this post , I explained
how to display date and time in windows application, date and time displayed in
label controls
using System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Text;
using
System.Windows.Forms;
using
Telerik.WinControls;
namespace company
{
public partial class Receipts : Telerik.WinControls.UI.RadForm
{
public
Receipts()
{
InitializeComponent();
}
private
void Receipts_Load(object
sender, EventArgs e)
{
lbldate.Text = DateTime.Now.ToLongDateString();
lblTime.Text = DateTime.Now.ToLongTimeString().ToString();
}
private
void timer1_Tick(object
sender, EventArgs e)
{
lblTime.Text = DateTime.Now.ToLongTimeString().ToString();
}
}
}
No comments:
Post a Comment