PC Review


Reply
Thread Tools Rate Thread

display time in my program

 
 
avida
Guest
Posts: n/a
 
      6th Mar 2007
Hello all,

I'm trying to find the best way to display the clock all the time in
my form.(WM 5.0)a
should I use snapi function or maybe DateTime Class? I'm not realy
sure

Thanks very much in advance

 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      6th Mar 2007
DateTime.Now


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"avida" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello all,
>
> I'm trying to find the best way to display the clock all the time in
> my form.(WM 5.0)a
> should I use snapi function or maybe DateTime Class? I'm not realy
> sure
>
> Thanks very much in advance
>



 
Reply With Quote
 
Kevin
Guest
Posts: n/a
 
      8th Mar 2007
Create a Timer (timerUpdateTime) and set the Interval to 1000. Create a
Label (m_DateTime) and place it on your form. In the Tick event for the
timer, add the following code:

private void timerUpdateTime_Tick(object sender, System.EventArgs e)
{
m_DateTime.Text = DateTime.Now.ToString("G");
}

You can set the format to whatever you want.


"<ctacke/>" <ctacke[@]opennetcf[dot]com> wrote in news:u36AF2#XHHA.688
@TK2MSFTNGP03.phx.gbl:

> DateTime.Now
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reminder program - time management program - I found q_q_anonymous@yahoo.co.uk Freeware 24 5th Jul 2006 02:04 AM
More time display options -- hide non-working hour time slots or . =?Utf-8?B?SmF5IERlIFlvdW5n?= Microsoft Outlook Calendar 0 12th Jan 2005 07:45 PM
looking for a cookie jar type program - display random msgs on screenevery time its run *ProteanThread* Freeware 6 3rd Nov 2004 01:25 AM
Display a running time (clock time) into a PowerPoint 2002 slide? =?Utf-8?B?MmxvZ1I=?= Microsoft Powerpoint 1 7th Oct 2004 08:53 PM
RE: Appointments do not display the correct time since daylight savings time change =?Utf-8?B?VmljIEFicmFoYW1pYW4=?= Microsoft Outlook Installation 0 12th May 2004 01:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:48 PM.