?我在Form1中加了两个Button,我想点击Button1实现调用Form2,点击Button2调用Form3,应该怎么作?

解决方案 »

  1.   

    user unit2,unit3;begin
    application.createform(tform2,form2)
    form2.showmodal;
    form2.free;
    end;
      

  2.   

    ?????
    兄弟是不是想逗我们玩?
    Form2.show
    和Form3.show
    就可以了满地的书上都有这个东西
    多看书吧
      

  3.   

    uses unit2,unit3(Form2,form3所在单元)button1.onclick :
    form2.show;button2.onclick :
    form3.show;
      

  4.   

    老实说你老兄是不是刚学DELPHI??怎么发了这么多问题???强烈建议你找本书看看
      

  5.   

    unit Unit1;interfaceuses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs, StdCtrls;type
      TForm1 = class(TForm)
        Button1: TButton;
        Button2: TButton;
        procedure Button1Click(Sender: TObject);
        procedure Button2Click(Sender: TObject);
      private
        { Private declarations }
      public
        { Public declarations }
      end;var
      Form1: TForm1;implementationuses Unit2, Unit3;{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
    begin
    form2.show;
    end;procedure TForm1.Button2Click(Sender: TObject);
    begin
    form3.show;
    end;end.
    以上是最简单的做法,不知你具体的需要是什么。
      

  6.   

    我就是刚学Delphi,时间紧迫,一周必须掌握大概。我正在一边看电子文档,一边试验,可是这个文档讲的对我来说不是很细,出了些让大家笑话的问题,请见谅!