请问各位高手,如何在 Delphi 环境下调用 Windows 现成的打开/创建对话框定位一个文件?或者如何使用 Delphi 程序编写这样两个对话框?

解决方案 »

  1.   

    用mainmenu控件啊,你mail多少.我跟你發個例子過去吧.我mail是[email protected]
      

  2.   

    有控件的。在dialoge控件页中。
    帮助里很清楚的,拖一个控件放在窗体上,然后f1……
      

  3.   

    以打开对话框为例:
    在工程的窗体上放一EDIT1和OpenDialog1,Button1写入以下代码:procedure TForm1.Button1Click(Sender: TObject);
    var  F: TextFile;
      S: string;
    begin
      if OpenDialog1.Execute then          { Display Open dialog box }
      begin
        AssignFile(F, OpenDialog1.FileName);   { File selected in dialog box }
        Reset(F);
        Readln(F, S);                          { Read the first line out of the file }
        Edit1.Text := S;                       { Put string in a TEdit control }
        CloseFile(F);
      end;
    end;
      

  4.   

    有控件啊!在Dialogs里放着。