Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How To Make A Simple Timer And Date

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Golden Wing
Grandmaster Cheater
Reputation: 0

Joined: 29 Aug 2007
Posts: 905

PostPosted: Tue Nov 06, 2007 1:24 pm    Post subject: How To Make A Simple Timer And Date Reply with quote

language = Vb6

hello welcome to my second tut how to make a timer and date Very Happy

Need:
Code:
1.Timer
2.Text Box


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 Very Happy

_________________
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Tue Nov 06, 2007 3:32 pm    Post subject: Reply with quote

can u tell me how to make it on C# i'd be very thankful
_________________
Stylo
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Nov 06, 2007 4:05 pm    Post subject: Reply with quote

1qaz wrote:
can u tell me how to make it on C# i'd be very thankful


http://www.codeguru.com/csharp/csharp/cs_date_time/formatting/article.php/c4205/

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Tue Nov 06, 2007 4:11 pm    Post subject: Reply with quote

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 Sad.
Back to top
View user's profile Send private message
Golden Wing
Grandmaster Cheater
Reputation: 0

Joined: 29 Aug 2007
Posts: 905

PostPosted: Tue Nov 06, 2007 4:33 pm    Post subject: Reply with quote

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 Sad.


Oo delphi is hard
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue Nov 06, 2007 5:29 pm    Post subject: Reply with quote

10/10

best tut ever!

_________________
Back to top
View user's profile Send private message
Golden Wing
Grandmaster Cheater
Reputation: 0

Joined: 29 Aug 2007
Posts: 905

PostPosted: Tue Nov 06, 2007 5:43 pm    Post subject: Reply with quote

blankrider wrote:
10/10

best tut ever!


lol SARCASM the same thing assaslap said the mod something like that lol
Back to top
View user's profile Send private message
Never Again
I post too much
Reputation: 0

Joined: 13 Jan 2007
Posts: 2000
Location: New Mexico

PostPosted: Tue Nov 06, 2007 10:35 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Nov 07, 2007 5:32 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites