为什么用Application.Restore;不能还原窗体?
tform1.button1click
begin
     Application.Restore;
end;
当我使窗体最大化后,点击button1不能使窗体恢复原大小。这是为什么?

解决方案 »

  1.   

    Application.Restore;
    Restores a minimized application to its normal size.
    use it
    Form1.WindowState := wsNormal;
      

  2.   

    本来Restore就只能将最小化的窗口还原,看看帮助!
    Use Restore to restore the application to its previous size before it was minimized.
     
    看看borland建议
    To minimize, maximize, and restore a window or form, change the value of its 
    WindowState property.
    最好用设置WindowState 的办法达到你想要的效果。
    (代理服务器有问题,不能发长的留言,请原谅) 
    --------------------------------------
    看!
    那支正飞向太阳的蛾子.....
    就是我!
    --------------------------------------