| View previous topic :: View next topic |
| Author |
Message |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Tue Nov 06, 2007 1:24 pm Post subject: How To Make A Simple Timer And Date |
|
|
language = Vb6
hello welcome to my second tut how to make a timer and date
Need:
Make a text box and put a timer ok now put 1000 in the timer interval and put this code in the timer | Code: | | Text1.Text = Date & "-" & Time |
And their you have it a time with a date  _________________
|
|
| Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Tue Nov 06, 2007 3:32 pm Post subject: |
|
|
can u tell me how to make it on C# i'd be very thankful _________________
Stylo |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Tue Nov 06, 2007 4:11 pm Post subject: |
|
|
| 1qaz wrote: | | can u tell me how to make it on C# i'd be very thankful |
1. Add timer
2. Label or Text box
3. Enable timer in properties and set interval to 1000
4. Double click the timer
5. Add this code
| Code: |
string sDate = System.DateTime.Now.ToString("dd/MM/yy");
string sTime = System.DateTime.Now.ToString("hh:mm:ss tt");
(Name of label/text box).Text = sDate + " " + sTime;
|
Edit: Too slow in typing . |
|
| Back to top |
|
 |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Tue Nov 06, 2007 4:33 pm Post subject: |
|
|
| killersamurai wrote: | | 1qaz wrote: | | can u tell me how to make it on C# i'd be very thankful |
1. Add timer
2. Label or Text box
3. Enable timer in properties and set interval to 1000
4. Double click the timer
5. Add this code
| Code: |
string sDate = System.DateTime.Now.ToString("dd/MM/yy");
string sTime = System.DateTime.Now.ToString("hh:mm:ss tt");
(Name of label/text box).Text = sDate + " " + sTime;
|
Edit: Too slow in typing . |
Oo delphi is hard |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Tue Nov 06, 2007 5:29 pm Post subject: |
|
|
10/10
best tut ever! _________________
|
|
| Back to top |
|
 |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Tue Nov 06, 2007 5:43 pm Post subject: |
|
|
| blankrider wrote: | 10/10
best tut ever! |
lol SARCASM the same thing assaslap said the mod something like that lol |
|
| Back to top |
|
 |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Tue Nov 06, 2007 10:35 pm Post subject: |
|
|
| xDemonRobbiex wrote: | | blankrider wrote: | 10/10
best tut ever! |
lol SARCASM the same thing assaslap said the mod something like that lol |
LOL!
Anyways, do you know if it's possible to do this in Delphi. |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Nov 07, 2007 5:32 am Post subject: |
|
|
| Never Again wrote: | | xDemonRobbiex wrote: | | blankrider wrote: | 10/10
best tut ever! |
lol SARCASM the same thing assaslap said the mod something like that lol |
LOL!
Anyways, do you know if it's possible to do this in Delphi. |
http://delphi.about.com/od/beginners/l/blrtldatetime.htm _________________
- Retired. |
|
| Back to top |
|
 |
|