试试我的,能满足你的要求,在form1中方一个按钮<br>unit Unit1;<br><br>interface<br><br>uses<br> Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, <br>Dialogs,<br> StdCtrls;<br><br>type<br> TForm1 = class(TForm)<br> Button1: TButton;<br> procedure Button1Click(Sender: TObject);<br> private<br> procedure FMin(var msg:twmsyscommand);message wm_syscommand;<br> { Private declarations }<br> public<br> { Public declarations }<br> end;<br>var<br> Form1: TForm1;<br>implementation<br>uses Unit2;<br>{$R *.DFM}<br>procedure tform1.fmin(var msg:twmsyscommand);<br>begin<br> if msg.CmdType=SC_MINIMIZE then form1.hide<br> else inherited;<br>end;<br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br>form2.show;<br>end;<br>end.