>Thank you Eric,
>
>Eric, please one more thing ,
>
>How I can control the close button "x" on the MDI form, like when the user click the close button a message will appear "Are you sure u want to exit the application yes/no?".
>
>I tried when form "unload" but it closes the form whither I clicked yes or no.
Use the QueryUnload event.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com