Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual basic form
Message
De
15/07/2002 11:54:56
 
 
À
15/07/2002 10:31:24
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00678677
Message ID:
00678724
Vues:
13
>hello ! everybody
>i want to disable the close button of my visual basic form without disabling other buttons(ie minimise and restore). can anybody help me?

For a simple approach, you can put this in your form code:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
   Cancel = True
End Sub
It won't disable the close button but per se but the result will be the same. Be aware that you need to provide other means for the form to be closed.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform