|
|
导航: |
论坛 -> 数据库专区
斑竹:liumazi,waterstone |
|
作者: |
|
2004/3/13 12:35:24 |
标题: |
|
加入我的收藏 |
楼主: |
大哥们:
1、怎么样让DateTimePicker跟系统时间一致??
2、怎么样让我的程序在启动后windows任务栏自动隐藏??
请教!!!
----------------------------------------------
- |
作者: |
hrbcw (hrbcw) |
★☆☆☆☆ |
-
|
盒子活跃会员 |
|
2004/3/13 13:01:12 |
1楼: |
unit Unit1;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, ExtCtrls;
type TForm1 = class(TForm) Button1: TButton; D: TDateTimePicker; SB: TStatusBar; Timer1: TTimer; procedure Button1Click(Sender: TObject); procedure Timer1Timer(Sender: TObject); private { Private declarations } public { Public declarations } end;
var Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject); begin d.DateTime:=now; end;
procedure TForm1.Timer1Timer(Sender: TObject); begin sb.Panels[0].Text:=datetimetostr(now); end;
end.
----------------------------------------------
你好
|
作者: |
hrbcw (hrbcw) |
★☆☆☆☆ |
-
|
盒子活跃会员 |
|
2004/3/13 13:02:57 |
2楼: |
同上
----------------------------------------------
你好
|
|