Click to See Complete Forum and Search --> : close a form


hooger
September 18th, 2001, 09:40 AM
Hi!

Just a little question :

I want that, when a user
- click on the little [x], in the top corner of the form at right
- right click on the bar in the top corner at left, on " Close"
- or press Alt + F4

The form will not be close but only hide. Is it possible?
Thanks!!

hooger

Cimperiali
September 18th, 2001, 09:46 AM
private sub Form query_unload(cancel as integer, unloadmode as integer)
'check unload mode...
cancel = true
me.hide
end sub

Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.

The Rater

Cimperiali
September 18th, 2001, 09:50 AM
http://codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vb&Number=4321&page=0&view=collapsed&sb=5

Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.

The Rater