如何关闭一个窗体(10分)

D

df_zkj

Unregistered / Unconfirmed
GUEST, unregistred user!
如何关闭一个窗体
 
在FORM中的onclose事件中写 action:=cafree
 
在需要关闭窗体的事件中写 窗体名称.close
 
关闭自己close
关闭别的窗口1:本程序中,formx.close
其它程序中PostMessage(Hd,WM_Close,0,0);hd为窗口的句柄
 
用孤灯夜影,关闭窗体后还能释放资源
 
同意三楼的!
 
在FORM中的onclose事件中写 action:=cafree
在FORM中的ondestory事件中写 form := nil
 
顶部