you mean close all forms? or only form 2 or something??
---This close only form2---
timer -> interval 100
if getkeypress(vbkeyEnd) then
unload form2
end if
end sub
---This close form1 and 2---
timer -> interval 100
if getkeypress(vbkeyEnd) then
unload form2
unload form1
end if
end sub
~ZeaS