easiest way would be to set controlbox property to false

you could also use the query unload event to make it useless..

there is also a way through code to remove it.. but keep the icon present (which disappears when you set controlbox = false).. but i don't have that code handy right now