You can use the KEYBOARD command or the MOUSE command to minimize programatically. Check out the queryunload event to intercept a kill button click. HTH
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California