1、edit控件没有垂直滚动条,改用memo控件,设置sScrollBars=ssVertical
2、
procedure TForm1.Button1Click(Sender: TObject);
var
f: TextFile;
s,sFileName: string;
begin
sFileName :='c:\1.sql';
AssignFile(f, sFilename);
Reset(f);

while not Eof(f) do
begin
Readln(f, s);
Memo1.Lines.Add(s) ;
end;

CloseFile(f);
end;

相关文章:

  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2021-12-11
  • 2021-05-29
  • 2021-11-12
猜你喜欢
  • 2022-02-12
  • 2022-12-23
  • 2021-08-21
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案