大哥们,教教小弟吧

解决方案 »

  1.   

    if opendialog.execute then
    begin
      opendialog.属性;
    end;
      

  2.   

    OpenDialog1.InitialDir := 'c:\winnt';
    OpenDialog1.Title := '选择txt文件';
    OpenDialog1.Filter := 'Text files (*.txt)|*.TXT';
    InitialDir是初始要打开的路径
    title是打开对话框的标题
    filter设置打开文件的类型
    if OpenDialog1.Execute then
       filename := OpenDialog1.FileName;
    filename是你要打开的文件
    其他好象没有太重要的属性了,不记得了,其他的你看帮助吧