Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to detect the change of the Date or time of you PC. Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
Detect the change of the Date or time of you PC. 17-Oct-04
Category
Win API
Language
Delphi All Versions
Views
513
User Rating
9
# Votes
1
Replies
1
Publisher:
Darley, F. Joe
Reference URL:
			1   //this code is helpful if you want to write an app to detect whenever
2   //the system time of you PC has changed.
3   unit Unit1;
4   
5   interface
6   
7   uses
8     Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
9     Dialogs, StdCtrls;
10  
11  type
12    TForm1 = class(TForm)
13      Button1: TButton;
14      procedure Button1Click(Sender: TObject);
15    private
16    procedure WMTIMECHANGE(var message: TWMTIMECHANGE);
17          message WM_TIMECHANGE;
18  
19      { Private declarations }
20    public
21      { Public declarations }
22    end;
23  
24  var
25    Form1: TForm1;
26  
27  implementation
28  
29  {$R *.dfm}
30  
31  procedure TForm1.Button1Click(Sender: TObject);
32  begin
33  close;
34  end;
35  
36  procedure TForm1.WMTIMECHANGE(var message: TWMTIMECHANGE);
37  begin
38  ShowMessage('Time changed');
39  end;
40  
41  end.


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC