>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.