Digital Clock in C# Console Application
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace Clock
{
class prExclass
{
public void ShowTime()
{
for (; ; )
{
Console.WriteLine(DateTime.Now.ToString());
Console.WriteLine("\a");
Thread.Sleep(1000);
Console.Clear();
}
}
static void Main(string[] args)
{
prExclass PC = new prExclass();
ThreadStart TS = new ThreadStart(PC.ShowTime);
Thread t = new Thread(TS);
t.Start();
Console.ReadLine();
}
}
}
Tom PadavathPosted Mar 15, 2017, 10:39 AM
Hey i would like to display a clock using c# and likes to return particular time whenever i access the digital clock method, is it possible??? am a beginner in c#
r kPosted Aug 12, 2014, 10:36 PM
console app ask user for input and save the data to a local file. application needs to be able to display all contacts currently stored. application must support multiple concurrent users. The application should alert the user when another user adds a new contact. First Name (required) Middle Name (optional) Last Name (required) Address 1 (required) Address 2 (optional) Telephone Number (optional)
r kPosted Aug 12, 2014, 3:57 PM
Please answer it is really urgent
r kPosted Aug 12, 2014, 3:54 PM
if yes i can send my code for correction , appreciate your help in advance