form5.Update;
update是什么意思呀,起什么作用呀

解决方案 »

  1.   

    Call Update to force the control to be repainted before any more, possibly time-consuming, processing takes place. Use Update to provide immediate feedback to the user that cannot wait for the Windows paint message to arrive.
      

  2.   

    也就是说 使用Update方法强制重画某个Control,比如你的Form5。有的时候某项耗时操作导致窗口不能正确显示 可以使用Update方法参考如下代码:  Application.Initialize;  frmSplash := TfrmSplash.Create(Application);
      frmSplash.Show;
      frmSplash.lbl1.Caption := '正在加载系统管理模块……';
      frmSplash.Update;  Application.CreateForm(TdmMain, dmMain);  frmSplash.Hide;
      frmSplash.Free;  Application.Run;