delphi7.程序运行问题
我在form3窗体上只放了一个按钮,希望实现的功能是,按时打开form4窗体,同时关闭form3窗体,程序如下,,为何运行时,按按钮时直接就退出了呢??unitUnit3...
我在form3窗体上只放了一个按钮,希望实现的功能是,按时打开form4窗体,同时关闭form3窗体,程序如下,,为何运行时,按按钮时直接就退出了呢??
unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls;
type
TForm3 = class(TForm)
Image1: TImage;
Label1: TLabel;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form3: TForm3;
implementation
uses Unit4;
{$R *.dfm}
procedure TForm3.Button1Click(Sender: TObject);
begin
form4.show;
form3.Close;
end;
end.
而且过一段时间,form4自动显示,但form3不会关闭!!! 展开
unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls;
type
TForm3 = class(TForm)
Image1: TImage;
Label1: TLabel;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form3: TForm3;
implementation
uses Unit4;
{$R *.dfm}
procedure TForm3.Button1Click(Sender: TObject);
begin
form4.show;
form3.Close;
end;
end.
而且过一段时间,form4自动显示,但form3不会关闭!!! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询